mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 09:10:28 +00:00
netlink: just return EOPNOTSUPP on shutdown(2)
This matches what Linux does. Reviewed by: melifaro, tuexen Differential Revision: https://reviews.freebsd.org/D43366
This commit is contained in:
parent
78258ee013
commit
af9f4ac57a
|
@ -545,15 +545,6 @@ nl_pru_disconnect(struct socket *so)
|
|||
return (ENOTCONN);
|
||||
}
|
||||
|
||||
static int
|
||||
nl_pru_shutdown(struct socket *so)
|
||||
{
|
||||
NL_LOG(LOG_DEBUG3, "socket %p, PID %d", so, curproc->p_pid);
|
||||
MPASS(sotonlpcb(so) != NULL);
|
||||
socantsendmore(so);
|
||||
return (0);
|
||||
}
|
||||
|
||||
static int
|
||||
nl_sockaddr(struct socket *so, struct sockaddr *sa)
|
||||
{
|
||||
|
@ -990,7 +981,6 @@ nl_setsbopt(struct socket *so, struct sockopt *sopt)
|
|||
.pr_disconnect = nl_pru_disconnect, \
|
||||
.pr_sosend = nl_sosend, \
|
||||
.pr_soreceive = nl_soreceive, \
|
||||
.pr_shutdown = nl_pru_shutdown, \
|
||||
.pr_sockaddr = nl_sockaddr, \
|
||||
.pr_close = nl_close
|
||||
|
||||
|
|
Loading…
Reference in a new issue