udp_usrreq.c (80044c785cb040a2cf73779d23f9e1e81a00c6c3) udp_usrreq.c (ce69e37369aa44a96113387253aadc5e49246928)
1/*-
2 * SPDX-License-Identifier: BSD-3-Clause
3 *
4 * Copyright (c) 1982, 1986, 1988, 1990, 1993, 1995
5 * The Regents of the University of California.
6 * Copyright (c) 2008 Robert N. M. Watson
7 * Copyright (c) 2010-2011 Juniper Networks, Inc.
8 * Copyright (c) 2014 Kevin Lo

--- 1708 unchanged lines hidden (view full) ---

1717 */
1718 error = ENOTCONN;
1719 else
1720 error = 0;
1721 SOCK_UNLOCK(so);
1722
1723 switch (how) {
1724 case SHUT_RD:
1/*-
2 * SPDX-License-Identifier: BSD-3-Clause
3 *
4 * Copyright (c) 1982, 1986, 1988, 1990, 1993, 1995
5 * The Regents of the University of California.
6 * Copyright (c) 2008 Robert N. M. Watson
7 * Copyright (c) 2010-2011 Juniper Networks, Inc.
8 * Copyright (c) 2014 Kevin Lo

--- 1708 unchanged lines hidden (view full) ---

1717 */
1718 error = ENOTCONN;
1719 else
1720 error = 0;
1721 SOCK_UNLOCK(so);
1722
1723 switch (how) {
1724 case SHUT_RD:
1725 socantrcvmore(so);
1726 sbrelease(so, SO_RCV);
1725 sorflush(so);
1727 break;
1728 case SHUT_RDWR:
1726 break;
1727 case SHUT_RDWR:
1729 socantrcvmore(so);
1730 sbrelease(so, SO_RCV);
1728 sorflush(so);
1731 /* FALLTHROUGH */
1732 case SHUT_WR:
1733 socantsendmore(so);
1734 }
1735
1736 return (error);
1737}
1738

--- 40 unchanged lines hidden ---
1729 /* FALLTHROUGH */
1730 case SHUT_WR:
1731 socantsendmore(so);
1732 }
1733
1734 return (error);
1735}
1736

--- 40 unchanged lines hidden ---