summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/netoptions
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2010-09-13 19:52:46 +0000
committerhrs <hrs@FreeBSD.org>2010-09-13 19:52:46 +0000
commit25136d07115b8a9b48a707087ac64ab03245c248 (patch)
tree5453ab8e4c60807a2079b720e248d294cf137f98 /etc/rc.d/netoptions
parent03d1ec35f183185d4968942088a39d969eedfed0 (diff)
downloadFreeBSD-src-25136d07115b8a9b48a707087ac64ab03245c248.zip
FreeBSD-src-25136d07115b8a9b48a707087ac64ab03245c248.tar.gz
Add $ipv6_privacy to support net.inet6.ip6.use_tempaddr. Note that this
will be replaced with a per-IF version later. Based on: changes in r206408 by dougb
Diffstat (limited to 'etc/rc.d/netoptions')
-rwxr-xr-xetc/rc.d/netoptions7
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/rc.d/netoptions b/etc/rc.d/netoptions
index 4631304..433ce82 100755
--- a/etc/rc.d/netoptions
+++ b/etc/rc.d/netoptions
@@ -99,6 +99,13 @@ netoptions_inet6()
else
${SYSCTL_W} net.inet6.ip6.v6only=1 >/dev/null
fi
+
+ if checkyesno ipv6_privacy; then
+ netoptions_init
+ echo -n " IPv6 Privacy Addresses"
+ ${SYSCTL_W} net.inet6.ip6.use_tempaddr=1 >/dev/null
+ ${SYSCTL_W} net.inet6.ip6.prefer_tempaddr=1 >/dev/null
+ fi
}
load_rc_config $name
OpenPOWER on IntegriCloud