From bf4ccb8d7aaa2bcd88dfb3714d9a303cb02fa0b0 Mon Sep 17 00:00:00 2001 From: teastep Date: Mon, 27 Jan 2003 02:54:43 +0000 Subject: [PATCH] Restore support for VLAN devices git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@420 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall/firewall | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Shorewall/firewall b/Shorewall/firewall index f5f285ad1..91717dbf0 100755 --- a/Shorewall/firewall +++ b/Shorewall/firewall @@ -374,7 +374,14 @@ chain_base() #$1 = interface { local c=${1%%+*} - echo ${c:=common} + case $c in + *.*) + echo ${c%.*}_${c#*.} + ;; + *) + echo ${c:=common} + ;; + esac } # @@ -609,7 +616,7 @@ validate_interfaces_file() { ;; *) error_message "Warning: Invalid option ($option) in record \"$r\"" - ;; + ;; esac done