Use INP_IPV6 flag instead of sotopf().
authorbluhm <bluhm@openbsd.org>
Sun, 3 Dec 2023 20:24:17 +0000 (20:24 +0000)
committerbluhm <bluhm@openbsd.org>
Sun, 3 Dec 2023 20:24:17 +0000 (20:24 +0000)
commitab4856565742a03275e9873bea036b4576f508ea
treeaa29c2bf68c9af3383e6400e7b5eb9996d3d0084
parent403a6e1ad86435541232593c1d219dc11c30edb9
Use INP_IPV6 flag instead of sotopf().

During initialization in_pcballoc() sets INP_IPV6 once to avoid
reaching through inp_socket->so_proto->pr_domain->dom_family.  Use
this flag consistently.

OK sashan@ mvs@
sys/netinet/in_pcb.c
sys/netinet/in_pcb.h
sys/netinet/tcp_usrreq.c
sys/netinet6/in6_pcb.c