mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Do more strict checking for an interface.
Suggested by: matusita@jp.FreeBSD.org MFC after: 1 week
This commit is contained in:
parent
197bca2ccf
commit
bd089fdbc0
2 changed files with 6 additions and 6 deletions
|
|
@ -197,7 +197,7 @@ network6_pass1() {
|
|||
'')
|
||||
for i in ${ipv6_network_interfaces}; do
|
||||
case $i in
|
||||
lo0|gif*|stf*|faith*|lp[012]|sl[012]|tun[012])
|
||||
lo0|gif[0-9]*|stf[0-9]*|faith[0-9]*|lp[0-9]*|sl[0-9]*|tun[0-9]*)
|
||||
continue
|
||||
;;
|
||||
*)
|
||||
|
|
@ -302,7 +302,7 @@ network6_interface_setup() {
|
|||
if [ ${rtsol_available} = yes -a ${rtsol_interface} = yes ]
|
||||
then
|
||||
case ${i} in
|
||||
lo0|gif*|stf*|faith*|lp[012]|sl[012]|tun[012])
|
||||
lo0|gif[0-9]*|stf[0-9]*|faith[0-9]*|lp[0-9]*|sl[0-9]*|tun[0-9]*)
|
||||
;;
|
||||
*)
|
||||
rtsol_interfaces="${rtsol_interfaces} ${i}"
|
||||
|
|
@ -424,7 +424,7 @@ network6_default_interface_setup() {
|
|||
'')
|
||||
for i in ${ipv6_network_interfaces}; do
|
||||
case $i in
|
||||
lo0|faith*)
|
||||
lo0|faith[0-9]*)
|
||||
continue
|
||||
;;
|
||||
esac
|
||||
|
|
|
|||
|
|
@ -197,7 +197,7 @@ network6_pass1() {
|
|||
'')
|
||||
for i in ${ipv6_network_interfaces}; do
|
||||
case $i in
|
||||
lo0|gif*|stf*|faith*|lp[012]|sl[012]|tun[012])
|
||||
lo0|gif[0-9]*|stf[0-9]*|faith[0-9]*|lp[0-9]*|sl[0-9]*|tun[0-9]*)
|
||||
continue
|
||||
;;
|
||||
*)
|
||||
|
|
@ -302,7 +302,7 @@ network6_interface_setup() {
|
|||
if [ ${rtsol_available} = yes -a ${rtsol_interface} = yes ]
|
||||
then
|
||||
case ${i} in
|
||||
lo0|gif*|stf*|faith*|lp[012]|sl[012]|tun[012])
|
||||
lo0|gif[0-9]*|stf[0-9]*|faith[0-9]*|lp[0-9]*|sl[0-9]*|tun[0-9]*)
|
||||
;;
|
||||
*)
|
||||
rtsol_interfaces="${rtsol_interfaces} ${i}"
|
||||
|
|
@ -424,7 +424,7 @@ network6_default_interface_setup() {
|
|||
'')
|
||||
for i in ${ipv6_network_interfaces}; do
|
||||
case $i in
|
||||
lo0|faith*)
|
||||
lo0|faith[0-9]*)
|
||||
continue
|
||||
;;
|
||||
esac
|
||||
|
|
|
|||
Loading…
Reference in a new issue