Verify interface names in the SOURCE column of /etc/shorewall/tcrules

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@318 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2002-11-09 15:56:29 +00:00
parent 507fa8069d
commit c44cb44f7c

View File

@ -1569,18 +1569,22 @@ process_tc_rule()
if [ "x$source" != "x-" ]; then
case $source in
*.*.*)
r="-s $source "
;;
~*)
r=`mac_match $source`
;;
$FW)
chain=tcout
;;
*)
r="-i $source "
;;
*.*.*)
r="-s $source "
;;
~*)
r=`mac_match $source`
;;
$FW)
chain=tcout
;;
*)
if ! list_search $source $all_interfaces; then
fatal_error "Error: Unknown interface $source"
fi
r="-i $source "
;;
esac
fi
[ "x$dest" = "x-" ] || r="${r}-d $dest "