From ef2ad588bc64686d6b4461aa77574845aee684d1 Mon Sep 17 00:00:00 2001 From: shin Date: Tue, 28 Mar 2000 17:39:53 +0000 Subject: Add a configuration options which enable/disable IPv4 mapped IPv6 addr support. Suggested and Reviewed by: ume --- etc/rc.network6 | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'etc/rc.network6') 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. -- cgit v1.1