Move PRU_BIND request to (*pru_bind)() handler.
authormvs <mvs@openbsd.org>
Sat, 20 Aug 2022 23:48:57 +0000 (23:48 +0000)
committermvs <mvs@openbsd.org>
Sat, 20 Aug 2022 23:48:57 +0000 (23:48 +0000)
commit121fc5cf6810c87c35842f48bf7231b89876684a
treece60e9943ba56a954614dc938f44bb4214f055f9
parente531bb44b3600aab9f5def44dc338b800bee6ba1
Move PRU_BIND request to (*pru_bind)() handler.

For the protocols which don't support request, leave handler NULL. Do the
NULL check within corresponding pru_() wrapper and return EOPNOTSUPP in
such case. This will be done for all upcoming user request handlers.

ok bluhm@ guenther@
18 files changed:
sys/kern/uipc_usrreq.c
sys/net/pfkeyv2.c
sys/net/rtsock.c
sys/netinet/ip_divert.c
sys/netinet/ip_divert.h
sys/netinet/ip_gre.c
sys/netinet/ip_var.h
sys/netinet/raw_ip.c
sys/netinet/tcp_usrreq.c
sys/netinet/tcp_var.h
sys/netinet/udp_usrreq.c
sys/netinet/udp_var.h
sys/netinet6/ip6_divert.c
sys/netinet6/ip6_divert.h
sys/netinet6/ip6_var.h
sys/netinet6/raw_ip6.c
sys/sys/protosw.h
sys/sys/unpcb.h