Ensure inp_vflag is consistently set for TCP endpoints.
authortuexen <tuexen@FreeBSD.org>
Fri, 18 Aug 2017 07:27:15 +0000 (07:27 +0000)
committertuexen <tuexen@FreeBSD.org>
Fri, 18 Aug 2017 07:27:15 +0000 (07:27 +0000)
commit9181a877e16559df983a0ff8eef541e01db45aad
tree5d0ab834510d4a7096bf59efb960374bef8842ec
parenta06088f66699008e4fdb9b17f7163feb23749200
Ensure inp_vflag is consistently set for TCP endpoints.

Make sure that the flags INP_IPV4 and INP_IPV6 are consistently set
for inpcbs used for TCP sockets, no matter if the setting is derived
from the net.inet6.ip6.v6only sysctl or the IPV6_V6ONLY socket option.
For UDP this was already done right.

PR: 221385
MFC after: 1 week
sys/netinet/tcp_usrreq.c