From 7a2f6b4f2072740fac3d723555d8c713deca1a96 Mon Sep 17 00:00:00 2001 From: ume Date: Wed, 24 Jul 2002 19:19:53 +0000 Subject: [PATCH] make sure to set/unset INP_IPV4 according to a value of IN6P_IPV6_V6ONLY Reviewed by: Keiichi SHIMA --- sys/netinet6/ip6_output.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/netinet6/ip6_output.c b/sys/netinet6/ip6_output.c index 08ef3d8c3d1d..52f3e5ef55af 100644 --- a/sys/netinet6/ip6_output.c +++ b/sys/netinet6/ip6_output.c @@ -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;