Move pr_attach and pr_detach to a new structure pr_usrreqs that can
authorguenther <guenther@openbsd.org>
Fri, 25 Feb 2022 08:36:01 +0000 (08:36 +0000)
committerguenther <guenther@openbsd.org>
Fri, 25 Feb 2022 08:36:01 +0000 (08:36 +0000)
commit80ceac1983da55420b0737450ea0ed47b8271479
treef3e75526629a5da124c8de1a8c675c7f4e7b91cd
parentdd66e717efcf62f1a6805473110196c2c9e85e3d
Move pr_attach and pr_detach to a new structure pr_usrreqs that can
then be shared among protosw structures, following the same basic
direction as NetBSD and FreeBSD for this.

Split PRU_CONTROL out of pr_usrreq into pru_control, giving it the
proper prototype to eliminate the previously necessary casts.

ok mvs@ bluhm@
26 files changed:
sys/kern/sys_socket.c
sys/kern/uipc_proto.c
sys/kern/uipc_socket.c
sys/kern/uipc_socket2.c
sys/kern/uipc_usrreq.c
sys/net/if.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