Introduce 'pr_usrreqs' structure and move existing user-protocol
authormvs <mvs@openbsd.org>
Mon, 15 Aug 2022 09:11:38 +0000 (09:11 +0000)
committermvs <mvs@openbsd.org>
Mon, 15 Aug 2022 09:11:38 +0000 (09:11 +0000)
commit7985bfd0a068dc874e13da550e9053a23be063a0
tree1e1014bbbd3645f9c8c267b62ecc47abf66165d6
parent56070bb8c5c1530a1befbdc802fe144854b8b0b7
Introduce 'pr_usrreqs' structure and move existing user-protocol
handlers into it. We want to split existing (*pr_usrreq)() to multiple
short handlers for each PRU_ request as it was already done for
PRU_ATTACH and PRU_DETACH. This is the preparation step, (*pr_usrreq)()
split will be done with the following diffs.

Based on reverted diff from guenther@.

ok bluhm@
23 files changed:
sys/kern/uipc_proto.c
sys/kern/uipc_socket.c
sys/kern/uipc_usrreq.c
sys/net/pfkeyv2.c
sys/net/rtsock.c
sys/netinet/in_proto.c
sys/netinet/ip_divert.c
sys/netinet/ip_divert.h
sys/netinet/ip_gre.c
sys/netinet/ip_gre.h
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/in6_proto.c
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