raw_ip.c (507f87a799cf0811ce30f0ae7f10ba19b2fd3db3) raw_ip.c (ce69e37369aa44a96113387253aadc5e49246928)
1/*-
2 * SPDX-License-Identifier: BSD-3-Clause
3 *
4 * Copyright (c) 1982, 1986, 1988, 1993
5 * The Regents of the University of California.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

989 if (!(so->so_state & SS_ISCONNECTED)) {
990 SOCK_UNLOCK(so);
991 return (ENOTCONN);
992 }
993 SOCK_UNLOCK(so);
994
995 switch (how) {
996 case SHUT_RD:
1/*-
2 * SPDX-License-Identifier: BSD-3-Clause
3 *
4 * Copyright (c) 1982, 1986, 1988, 1993
5 * The Regents of the University of California.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

989 if (!(so->so_state & SS_ISCONNECTED)) {
990 SOCK_UNLOCK(so);
991 return (ENOTCONN);
992 }
993 SOCK_UNLOCK(so);
994
995 switch (how) {
996 case SHUT_RD:
997 socantrcvmore(so);
998 sbrelease(so, SO_RCV);
997 sorflush(so);
999 break;
1000 case SHUT_RDWR:
998 break;
999 case SHUT_RDWR:
1001 socantrcvmore(so);
1002 sbrelease(so, SO_RCV);
1000 sorflush(so);
1003 /* FALLTHROUGH */
1004 case SHUT_WR:
1005 socantsendmore(so);
1006 }
1007
1008 return (0);
1009}
1010#endif /* INET */

--- 89 unchanged lines hidden ---
1001 /* FALLTHROUGH */
1002 case SHUT_WR:
1003 socantsendmore(so);
1004 }
1005
1006 return (0);
1007}
1008#endif /* INET */

--- 89 unchanged lines hidden ---