From dcaecffe697706dcc4f4a7e6e4f2cc2bf01340f8 Mon Sep 17 00:00:00 2001 From: Hajimu UMEMOTO Date: Thu, 25 Jul 2002 15:44:01 +0000 Subject: [PATCH] Change the default setting of an IPv4-mapped IPv6 address to off. Requested by: many people --- etc/defaults/rc.conf | 2 +- sys/netinet6/in6_proto.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf index c517883b083..d76b5d887d2 100644 --- a/etc/defaults/rc.conf +++ b/etc/defaults/rc.conf @@ -300,7 +300,7 @@ stf_interface_ipv6_slaid="0000" # IPv6 Site Level Aggregator for stf0 ipv6_faith_prefix="NO" # Set faith prefix to enable a FAITH # IPv6-to-IPv4 TCP translator. You also need # faithd(8) setup. -ipv6_ipv4mapping="YES" # Set to "NO" to disable IPv4 mapped IPv6 addr +ipv6_ipv4mapping="NO" # Set to "YES" to enable IPv4 mapped IPv6 addr # communication. (like ::ffff:a.b.c.d) ipv6_firewall_enable="NO" # Set to YES to enable IPv6 firewall # functionality diff --git a/sys/netinet6/in6_proto.c b/sys/netinet6/in6_proto.c index 52d247fa348..98a312ef8d7 100644 --- a/sys/netinet6/in6_proto.c +++ b/sys/netinet6/in6_proto.c @@ -288,7 +288,7 @@ int ip6_gif_hlim = 0; int ip6_use_deprecated = 1; /* allow deprecated addr (RFC2462 5.5.4) */ int ip6_rr_prune = 5; /* router renumbering prefix * walk list every 5 sec. */ -int ip6_v6only = 0; +int ip6_v6only = 1; u_int32_t ip6_id = 0UL; int ip6_keepfaith = 0;