mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 17:22:46 -04: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
2 changed files with 14 additions and 4 deletions
|
|
@ -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 a new issue