summaryrefslogtreecommitdiffstats
path: root/sys/netinet6/in6_proto.c
diff options
context:
space:
mode:
authorsuz <suz@FreeBSD.org>2005-08-10 09:13:35 +0000
committersuz <suz@FreeBSD.org>2005-08-10 09:13:35 +0000
commit62a02b864f3e4ef54813056a19aa3d737e1d2db4 (patch)
tree7f1c2abf085f583d760b85a80a732aa747bc02ed /sys/netinet6/in6_proto.c
parentd5d343a0fd32ccf4d1ac54fbf4e20d7373d6835e (diff)
downloadFreeBSD-src-62a02b864f3e4ef54813056a19aa3d737e1d2db4.zip
FreeBSD-src-62a02b864f3e4ef54813056a19aa3d737e1d2db4.tar.gz
supports stealth forwarding in IPv6, as well as in IPv4
PR: kern/54625 MFC after: 1 week
Diffstat (limited to 'sys/netinet6/in6_proto.c')
-rw-r--r--sys/netinet6/in6_proto.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/netinet6/in6_proto.c b/sys/netinet6/in6_proto.c
index 9849d28..ce95796 100644
--- a/sys/netinet6/in6_proto.c
+++ b/sys/netinet6/in6_proto.c
@@ -64,6 +64,7 @@
#include "opt_inet.h"
#include "opt_inet6.h"
#include "opt_ipsec.h"
+#include "opt_ipstealth.h"
#include "opt_carp.h"
#include <sys/param.h>
@@ -310,6 +311,9 @@ int ip6_v6only = 1;
int ip6_keepfaith = 0;
time_t ip6_log_time = (time_t)0L;
+#ifdef IPSTEALTH
+int ip6stealth = 0;
+#endif
/* icmp6 */
/*
@@ -446,6 +450,10 @@ SYSCTL_INT(_net_inet6_ip6, IPV6CTL_USE_DEFAULTZONE,
use_defaultzone, CTLFLAG_RW, &ip6_use_defzone, 0,"");
SYSCTL_INT(_net_inet6_ip6, IPV6CTL_MAXFRAGS,
maxfrags, CTLFLAG_RW, &ip6_maxfrags, 0, "");
+#ifdef IPSTEALTH
+SYSCTL_INT(_net_inet6_ip6, IPV6CTL_STEALTH, stealth, CTLFLAG_RW,
+ &ip6stealth, 0, "");
+#endif
/* net.inet6.icmp6 */
SYSCTL_INT(_net_inet6_icmp6, ICMPV6CTL_REDIRACCEPT,
OpenPOWER on IntegriCloud