Unify inpcb API for inet and inet6.
authorbluhm <bluhm@openbsd.org>
Fri, 19 Jan 2024 02:24:07 +0000 (02:24 +0000)
committerbluhm <bluhm@openbsd.org>
Fri, 19 Jan 2024 02:24:07 +0000 (02:24 +0000)
commita342f0b41204e9377176fe86b10876a4dbc939a3
treec960601923c98c8796bb1cfecaa3bc5f9f6f974b
parent470ec98d6191876804c57e039a48bac46057aec8
Unify inpcb API for inet and inet6.

Many functions for IPv4 call their IPv6 counterpart if INP_IPV6 is
set at the socket's pcb.  By using the generic API consistently,
the logic is not in the caller it gets more readable.

OK mvs@
sys/netinet/in_pcb.c
sys/netinet/tcp_usrreq.c
sys/netinet/udp_usrreq.c