Expand in/out device match for non-critical rules

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@3445 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2006-02-04 23:04:19 +00:00
parent f0728b5e50
commit 5c04751338

View File

@ -794,6 +794,10 @@ match_source_dev()
{
if [ -n "$BRIDGING" ]; then
known_port $1 && physdev_echo "--physdev-in $1" || echo -i $1
elif known_interface $1 then
echo -i $1
elif [ -n "$PHYSDEV_MATCH" ]; then
physdev_echo "--physdev-in $1"
else
echo -i $1
fi
@ -803,6 +807,10 @@ match_dest_dev()
{
if [ -n "$BRIDGING" ]; then
known_port $1 && physdev_echo "--physdev-out $1" || echo -o $1
elif known_interface $1 then
echo -o $1
elif [ -n "$PHYSDEV_MATCH" ]; then
physdev_echo "--physdev-out $1"
else
echo -o $1
fi