diff options
author | ume <ume@FreeBSD.org> | 2001-07-19 12:37:22 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2001-07-19 12:37:22 +0000 |
commit | 4fee61c6b4c82d1f2d442deb399fa113494da959 (patch) | |
tree | 6e4c0a0f65372fba108d8836966be783e4c9108d /etc | |
parent | 7fee5bd13898ccb7a9999a9fbfae27fd2425e8af (diff) | |
download | FreeBSD-src-4fee61c6b4c82d1f2d442deb399fa113494da959.zip FreeBSD-src-4fee61c6b4c82d1f2d442deb399fa113494da959.tar.gz |
- Avoid to select an interface which is not good for RA/RS.
Submitted by: sakane@kame.net
- Avoid to select lo0 or faith for a default interface.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/rc.d/network_ipv6 | 9 | ||||
-rw-r--r-- | etc/rc.network6 | 9 |
2 files changed, 14 insertions, 4 deletions
diff --git a/etc/rc.d/network_ipv6 b/etc/rc.d/network_ipv6 index aa8d6a2..d1d8e09 100644 --- a/etc/rc.d/network_ipv6 +++ b/etc/rc.d/network_ipv6 @@ -197,7 +197,7 @@ network6_pass1() { '') for i in ${ipv6_network_interfaces}; do case $i in - lo0|gif*|stf*|faith*) + lo0|gif*|stf*|faith*|lp[012]|sl[012]|tun[012]) continue ;; *) @@ -302,7 +302,7 @@ network6_interface_setup() { if [ ${rtsol_available} = yes -a ${rtsol_interface} = yes ] then case ${i} in - lo0|gif*|stf*|faith*) + lo0|gif*|stf*|faith*|lp[012]|sl[012]|tun[012]) ;; *) rtsol_interfaces="${rtsol_interfaces} ${i}" @@ -423,6 +423,11 @@ network6_default_interface_setup() { case ${ipv6_default_interface} in '') for i in ${ipv6_network_interfaces}; do + case $i in + lo0|faith*) + continue + ;; + esac laddr=`network6_getladdr $i exclude_tentative` case ${laddr} in '') diff --git a/etc/rc.network6 b/etc/rc.network6 index aa8d6a2..d1d8e09 100644 --- a/etc/rc.network6 +++ b/etc/rc.network6 @@ -197,7 +197,7 @@ network6_pass1() { '') for i in ${ipv6_network_interfaces}; do case $i in - lo0|gif*|stf*|faith*) + lo0|gif*|stf*|faith*|lp[012]|sl[012]|tun[012]) continue ;; *) @@ -302,7 +302,7 @@ network6_interface_setup() { if [ ${rtsol_available} = yes -a ${rtsol_interface} = yes ] then case ${i} in - lo0|gif*|stf*|faith*) + lo0|gif*|stf*|faith*|lp[012]|sl[012]|tun[012]) ;; *) rtsol_interfaces="${rtsol_interfaces} ${i}" @@ -423,6 +423,11 @@ network6_default_interface_setup() { case ${ipv6_default_interface} in '') for i in ${ipv6_network_interfaces}; do + case $i in + lo0|faith*) + continue + ;; + esac laddr=`network6_getladdr $i exclude_tentative` case ${laddr} in '') |