Do more strict checking for an interface.

Suggested by:	matusita@jp.FreeBSD.org
MFC after:	1 week
This commit is contained in:
Hajimu UMEMOTO 2001-07-20 18:08:17 +00:00
parent 197bca2ccf
commit bd089fdbc0
2 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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