summaryrefslogtreecommitdiffstats
path: root/etc/rc.network6
diff options
context:
space:
mode:
authorshin <shin@FreeBSD.org>2000-03-28 17:39:53 +0000
committershin <shin@FreeBSD.org>2000-03-28 17:39:53 +0000
commitef2ad588bc64686d6b4461aa77574845aee684d1 (patch)
treef3b6578052364d45aab78fbe7890b52ada30f428 /etc/rc.network6
parentb9cb6f83fc005d50087afb3add38a73a1813cdf0 (diff)
downloadFreeBSD-src-ef2ad588bc64686d6b4461aa77574845aee684d1.zip
FreeBSD-src-ef2ad588bc64686d6b4461aa77574845aee684d1.tar.gz
Add a configuration options which enable/disable IPv4 mapped IPv6 addr
support. Suggested and Reviewed by: ume
Diffstat (limited to 'etc/rc.network6')
-rw-r--r--etc/rc.network611
1 files changed, 11 insertions, 0 deletions
diff --git a/etc/rc.network6 b/etc/rc.network6
index 801077f..d4c5dd2 100644
--- a/etc/rc.network6
+++ b/etc/rc.network6
@@ -212,6 +212,17 @@ network6_pass1() {
;;
esac
+ case ${ipv6_ipv4mapping} in
+ [Yy][Ee][Ss])
+ echo -n ' IPv4 mapped IPv6 address support=YES'
+ sysctl -w net.inet6.ip6.mapped_addr=1 >/dev/null
+ ;;
+ '' | *)
+ echo -n ' IPv4 mapped IPv6 address support=NO'
+ sysctl -w net.inet6.ip6.mapped_addr=0 >/dev/null
+ ;;
+ esac
+
echo '.'
# Let future generations know we made it.
OpenPOWER on IntegriCloud