Move PRU_PEERADDR request to (*pru_peeraddr)().
authormvs <mvs@openbsd.org>
Sat, 3 Sep 2022 22:43:38 +0000 (22:43 +0000)
committermvs <mvs@openbsd.org>
Sat, 3 Sep 2022 22:43:38 +0000 (22:43 +0000)
commitc3a3d6092d41859cf047929fddba8fb54e316416
tree49821754fab8aea01f6ae8afab4a04b5c41abd8e
parenta300f670c8e17f72646e4eaedfbfeb3ce01a295f
Move PRU_PEERADDR request to (*pru_peeraddr)().

Introduce in{,6}_peeraddr() and use them for inet and inet6 sockets,
except tcp(4) case.

Also remove *_usrreq() handlers.

ok bluhm@
21 files changed:
sys/kern/uipc_usrreq.c
sys/net/pfkeyv2.c
sys/net/rtsock.c
sys/netinet/in_pcb.c
sys/netinet/in_pcb.h
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/in6_pcb.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