Move SS_CANTRCVMORE and SS_RCVATMARK bits from `so_state' to `sb_state' of
authormvs <mvs@openbsd.org>
Sun, 22 Jan 2023 12:05:44 +0000 (12:05 +0000)
committermvs <mvs@openbsd.org>
Sun, 22 Jan 2023 12:05:44 +0000 (12:05 +0000)
commit4b9bfff397aff6d98d71e75e47b7998362e97d0a
tree042ed8b01a87857a207f9411e1ec034cc53fcc2d
parent5b66b1f4c4b79396992358807b7b53d5c2078734
Move SS_CANTRCVMORE and SS_RCVATMARK bits from `so_state' to `sb_state' of
receive buffer. As it was done for SS_CANTSENDMORE bit, the definition
kept as is, but now these bits belongs to the `sb_state' of receive
buffer. `sb_state' ored with `so_state' when socket data exporting to the
userland.

ok bluhm@
13 files changed:
sys/kern/kern_sysctl.c
sys/kern/sys_socket.c
sys/kern/uipc_socket.c
sys/kern/uipc_socket2.c
sys/kern/uipc_syscalls.c
sys/miscfs/fifofs/fifo_vnops.c
sys/net/rtsock.c
sys/netinet/raw_ip.c
sys/netinet/tcp_input.c
sys/netinet/tcp_usrreq.c
sys/netinet/udp_usrreq.c
sys/netinet6/raw_ip6.c
sys/sys/socketvar.h