summaryrefslogtreecommitdiffstats
path: root/sys/net/if_stf.c
diff options
context:
space:
mode:
authorae <ae@FreeBSD.org>2012-12-27 21:26:08 +0000
committerae <ae@FreeBSD.org>2012-12-27 21:26:08 +0000
commitf89408c03ebecabf267926dd2304436d3129e45c (patch)
treee186e911232e93a7f98831dc4b615b6263f1514f /sys/net/if_stf.c
parent60647185741ca17e243ad7fcabde595eb8ae00e9 (diff)
downloadFreeBSD-src-f89408c03ebecabf267926dd2304436d3129e45c.zip
FreeBSD-src-f89408c03ebecabf267926dd2304436d3129e45c.tar.gz
Add an ability to set net.link.stf.permit_rfc1918 from the loader.
MFC after: 2 weeks
Diffstat (limited to 'sys/net/if_stf.c')
-rw-r--r--sys/net/if_stf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/if_stf.c b/sys/net/if_stf.c
index de76724..c8f2ec8 100644
--- a/sys/net/if_stf.c
+++ b/sys/net/if_stf.c
@@ -128,7 +128,8 @@ SYSCTL_INT(_net_link_stf, OID_AUTO, route_cache, CTLFLAG_RW,
&stf_route_cache, 0, "Caching of IPv4 routes for 6to4 Output");
static int stf_permit_rfc1918 = 0;
-SYSCTL_INT(_net_link_stf, OID_AUTO, permit_rfc1918, CTLFLAG_RW,
+TUNABLE_INT("net.link.stf.permit_rfc1918", &stf_permit_rfc1918);
+SYSCTL_INT(_net_link_stf, OID_AUTO, permit_rfc1918, CTLFLAG_RW | CTLFLAG_TUN,
&stf_permit_rfc1918, 0, "Permit the use of private IPv4 addresses");
#define STFUNIT 0
OpenPOWER on IntegriCloud