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:
parent
ff1f4546e4
commit
7a2f6b4f20
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user