sys/netinet6/in6_proto.c: net.inet6.ip6.v6only=1 by default

Hiroki Sato hrs at allbsd.org
Fri Dec 31 15:38:07 PST 2004


Hi,

 Here is a patch to set net.inet6.ip6.v6only=1 by default (this
 means IPv4-mapped IPv6 address is disabled).
 I think IPv4-mapped IPv6 address just makes things complicated
 and disabling it by default does not have any harmful influence.

Set ip6_v6only=1 by default.  The administrators who want to use
IPv4-mapped IPv6 address should tweak the sysctl manually with knowledge
of the security concerns.

References:
	KAME: kame/sys/netinet6/in6_proto.c 1.151
	FreeBSD: sys/netinet6/in6_proto.c 1.18
	ftp://ftp.itojun.org/pub/paper/draft-itojun-v6ops-v4mapped-harmful-01.txt

Index: in6_proto.c
===================================================================
RCS file: /cvs/src/sys/netinet6/in6_proto.c,v
retrieving revision 1.6
diff -d -u -I\$FreeBSD:.*\$ -I\$NetBSD:.*\$ -I\$OpenBSD:.*\$ -I\$DragonFly:.*\$ -I\$Id:.*\$ -I\$hrs:.*\$ -r1.6 in6_proto.c
--- in6_proto.c	15 Oct 2004 22:59:10 -0000	1.6
+++ in6_proto.c	31 Dec 2004 01:16:30 -0000
@@ -298,7 +298,7 @@
 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;
Attachment:
pgp00001.pgp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pgp00001.pgp
Type: application/octet-stream
Size: 187 bytes
Desc: "Description: PGP signature"
URL: <http://lists.dragonflybsd.org/pipermail/submit/attachments/20041231/899c4e8e/attachment-0018.obj>


More information about the Submit mailing list