Toggle the default value of ip6_v6only. Also provide a sample sysctl to

retain the existing behavior.
This commit is contained in:
briggs 2003-10-28 06:31:28 +00:00
parent 68a06a8528
commit 5a770ba2d8
2 changed files with 8 additions and 4 deletions

View File

@ -1,6 +1,6 @@
#!/sbin/sysctl -f
#
# $NetBSD: sysctl.conf,v 1.3 2000/04/15 21:14:49 tsarna Exp $
# $NetBSD: sysctl.conf,v 1.4 2003/10/28 06:31:28 briggs Exp $
#
# sysctl(8) variables to set at boot time.
@ -9,3 +9,7 @@
# Number of kernel threads to use for NFS client
#vfs.nfs.iothreads=4
# Do not allow IPv4 packet to be delivered to AF_INET6 sockets
# ftp://ftp.itojun.org/pub/paper/draft-cmetz-v6ops-v4mapped-api-harmful-00.txt
#net.inet6.ip6.v6only=1

View File

@ -1,4 +1,4 @@
/* $NetBSD: in6_proto.c,v 1.53 2003/09/06 03:36:32 itojun Exp $ */
/* $NetBSD: in6_proto.c,v 1.54 2003/10/28 06:31:28 briggs Exp $ */
/* $KAME: in6_proto.c,v 1.66 2000/10/10 15:35:47 itojun Exp $ */
/*
@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: in6_proto.c,v 1.53 2003/09/06 03:36:32 itojun Exp $");
__KERNEL_RCSID(0, "$NetBSD: in6_proto.c,v 1.54 2003/10/28 06:31:28 briggs Exp $");
#include "opt_inet.h"
#include "opt_ipsec.h"
@ -266,7 +266,7 @@ int ip6_auto_flowlabel = 1;
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 = 1;
int ip6_v6only = 0;
int ip6_keepfaith = 0;
time_t ip6_log_time = (time_t)0L;