mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
- 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.
This commit is contained in:
parent
cce7f73d72
commit
bb697a7fcb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=79958
@ -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
|
||||
'')
|
||||
|
@ -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
|
||||
'')
|
||||
|
Loading…
Reference in New Issue
Block a user