Assert that inpcb table has correct address family.
authorbluhm <bluhm@openbsd.org>
Sun, 21 Jan 2024 01:17:20 +0000 (01:17 +0000)
committerbluhm <bluhm@openbsd.org>
Sun, 21 Jan 2024 01:17:20 +0000 (01:17 +0000)
commite3a7b0144b3435c676ce00e1ece5d8a58af6e48c
tree7e63e250652bcc043e1a5ffba5c432bf4245e537
parent1b9db5f20e8ddc0c9da04835b12c6832dd0d17ff
Assert that inpcb table has correct address family.

Since inpcb tables for UDP and Raw IP have been split into IPv4 and
IPv6, assert that INP_IPV6 flag is correct instead of checking it.
While there, give the table variable a nicer name.

OK sashan@ mvs@
sys/netinet/raw_ip.c
sys/netinet/udp_usrreq.c
sys/netinet6/raw_ip6.c