make sure to set/unset INP_IPV4 according to a value

of IN6P_IPV6_V6ONLY

Reviewed by:	Keiichi SHIMA <keiichi@iij.ad.jp>
This commit is contained in:
ume 2002-07-24 19:19:53 +00:00
parent ff1f4546e4
commit 7a2f6b4f20

View File

@ -1377,6 +1377,10 @@ do { \
break;
}
OPTSET(IN6P_IPV6_V6ONLY);
if (optval)
in6p->in6p_vflag &= ~INP_IPV4;
else
in6p->in6p_vflag |= INP_IPV4;
break;
}
break;