diff options
Diffstat (limited to 'etc/rc.d/network_ipv6')
-rw-r--r-- | etc/rc.d/network_ipv6 | 26 |
1 files changed, 6 insertions, 20 deletions
diff --git a/etc/rc.d/network_ipv6 b/etc/rc.d/network_ipv6 index dc6188a..a46194f 100644 --- a/etc/rc.d/network_ipv6 +++ b/etc/rc.d/network_ipv6 @@ -232,11 +232,11 @@ network6_pass1() { 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 + sysctl -w net.inet6.ip6.v6only=0 >/dev/null ;; '' | *) echo -n ' IPv4 mapped IPv6 address support=NO' - sysctl -w net.inet6.ip6.mapped_addr=0 >/dev/null + sysctl -w net.inet6.ip6.v6only=1 >/dev/null ;; esac @@ -256,7 +256,6 @@ network6_interface_setup() { ;; *) rtsol_available=yes - prefixcmd_enable=NO ;; esac for i in $interfaces; do @@ -265,24 +264,11 @@ network6_interface_setup() { if [ -n "${prefix}" ]; then rtsol_available=no rtsol_interface=no + laddr=`network6_getladdr $i` + hostid=`expr "${laddr}" : 'fe80::\(.*\)%\(.*\)'` for j in ${prefix}; do - case ${prefixcmd_enable} in - [Yy][Ee][Ss]) - prefix $i $j:: - ;; - *) - laddr=`network6_getladdr $i` - hostid=`expr "${laddr}" : \ - 'fe80::\(.*\)%\(.*\)'` - address=$j\:${hostid} - - eval hostid_$i=${hostid} - eval address_$i=${address} - - ifconfig $i inet6 ${address} \ - prefixlen 64 alias - ;; - esac + address=$j\:${hostid} + ifconfig $i inet6 ${address} prefixlen 64 alias case ${ipv6_gateway_enable} in [Yy][Ee][Ss]) |