mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
divert: just return EOPNOTSUPP on shutdown(2)
Before this change we would always return ENOTCONN. There is no legitimate use of shutdown(2) on divert(4).
This commit is contained in:
parent
0598824cc8
commit
d4033ebd05
1 changed files with 0 additions and 9 deletions
|
|
@ -635,14 +635,6 @@ div_bind(struct socket *so, struct sockaddr *nam, struct thread *td)
|
|||
return (0);
|
||||
}
|
||||
|
||||
static int
|
||||
div_shutdown(struct socket *so)
|
||||
{
|
||||
|
||||
socantsendmore(so);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int
|
||||
div_pcblist(SYSCTL_HANDLER_ARGS)
|
||||
{
|
||||
|
|
@ -720,7 +712,6 @@ static struct protosw div_protosw = {
|
|||
.pr_bind = div_bind,
|
||||
.pr_detach = div_detach,
|
||||
.pr_send = div_send,
|
||||
.pr_shutdown = div_shutdown,
|
||||
};
|
||||
|
||||
static struct domain divertdomain = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue