From 053b690320f83002ab72bc7051a08d3372f67653 Mon Sep 17 00:00:00 2001 From: teastep Date: Tue, 3 Apr 2007 01:25:13 +0000 Subject: [PATCH] Rename 'New' to 'Shorewall-perl' git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5816 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- {New => Shorewall-perl}/COPYING | 0 {New => Shorewall-perl}/README.txt | 0 {New => Shorewall-perl}/Shorewall/Accounting.pm | 0 {New => Shorewall-perl}/Shorewall/Actions.pm | 0 {New => Shorewall-perl}/Shorewall/Chains.pm | 0 {New => Shorewall-perl}/Shorewall/Common.pm | 0 {New => Shorewall-perl}/Shorewall/Config.pm | 0 {New => Shorewall-perl}/Shorewall/Hosts.pm | 0 {New => Shorewall-perl}/Shorewall/IPAddrs.pm | 0 {New => Shorewall-perl}/Shorewall/Interfaces.pm | 0 {New => Shorewall-perl}/Shorewall/Macros.pm | 0 {New => Shorewall-perl}/Shorewall/Nat.pm | 0 {New => Shorewall-perl}/Shorewall/Policy.pm | 0 {New => Shorewall-perl}/Shorewall/Proc.pm | 0 {New => Shorewall-perl}/Shorewall/Providers.pm | 0 {New => Shorewall-perl}/Shorewall/Proxyarp.pm | 0 {New => Shorewall-perl}/Shorewall/Rules.pm | 0 {New => Shorewall-perl}/Shorewall/Tc.pm | 0 {New => Shorewall-perl}/Shorewall/Tunnels.pm | 0 {New => Shorewall-perl}/Shorewall/Zones.pm | 0 {New => Shorewall-perl}/compiler | 0 {New => Shorewall-perl}/compiler.pl | 0 {New => Shorewall-perl}/install.sh | 0 {New => Shorewall-perl}/prog.footer | 0 {New => Shorewall-perl}/prog.functions | 0 {New => Shorewall-perl}/prog.header | 0 {New => Shorewall-perl}/releasenotes.txt | 0 {New => Shorewall-perl}/shorewall-perl.spec | 0 Shorewall/lib.base | 9 ++++++++- 29 files changed, 8 insertions(+), 1 deletion(-) rename {New => Shorewall-perl}/COPYING (100%) rename {New => Shorewall-perl}/README.txt (100%) rename {New => Shorewall-perl}/Shorewall/Accounting.pm (100%) rename {New => Shorewall-perl}/Shorewall/Actions.pm (100%) rename {New => Shorewall-perl}/Shorewall/Chains.pm (100%) rename {New => Shorewall-perl}/Shorewall/Common.pm (100%) rename {New => Shorewall-perl}/Shorewall/Config.pm (100%) rename {New => Shorewall-perl}/Shorewall/Hosts.pm (100%) rename {New => Shorewall-perl}/Shorewall/IPAddrs.pm (100%) rename {New => Shorewall-perl}/Shorewall/Interfaces.pm (100%) rename {New => Shorewall-perl}/Shorewall/Macros.pm (100%) rename {New => Shorewall-perl}/Shorewall/Nat.pm (100%) rename {New => Shorewall-perl}/Shorewall/Policy.pm (100%) rename {New => Shorewall-perl}/Shorewall/Proc.pm (100%) rename {New => Shorewall-perl}/Shorewall/Providers.pm (100%) rename {New => Shorewall-perl}/Shorewall/Proxyarp.pm (100%) rename {New => Shorewall-perl}/Shorewall/Rules.pm (100%) rename {New => Shorewall-perl}/Shorewall/Tc.pm (100%) rename {New => Shorewall-perl}/Shorewall/Tunnels.pm (100%) rename {New => Shorewall-perl}/Shorewall/Zones.pm (100%) rename {New => Shorewall-perl}/compiler (100%) rename {New => Shorewall-perl}/compiler.pl (100%) rename {New => Shorewall-perl}/install.sh (100%) rename {New => Shorewall-perl}/prog.footer (100%) rename {New => Shorewall-perl}/prog.functions (100%) rename {New => Shorewall-perl}/prog.header (100%) rename {New => Shorewall-perl}/releasenotes.txt (100%) rename {New => Shorewall-perl}/shorewall-perl.spec (100%) diff --git a/New/COPYING b/Shorewall-perl/COPYING similarity index 100% rename from New/COPYING rename to Shorewall-perl/COPYING diff --git a/New/README.txt b/Shorewall-perl/README.txt similarity index 100% rename from New/README.txt rename to Shorewall-perl/README.txt diff --git a/New/Shorewall/Accounting.pm b/Shorewall-perl/Shorewall/Accounting.pm similarity index 100% rename from New/Shorewall/Accounting.pm rename to Shorewall-perl/Shorewall/Accounting.pm diff --git a/New/Shorewall/Actions.pm b/Shorewall-perl/Shorewall/Actions.pm similarity index 100% rename from New/Shorewall/Actions.pm rename to Shorewall-perl/Shorewall/Actions.pm diff --git a/New/Shorewall/Chains.pm b/Shorewall-perl/Shorewall/Chains.pm similarity index 100% rename from New/Shorewall/Chains.pm rename to Shorewall-perl/Shorewall/Chains.pm diff --git a/New/Shorewall/Common.pm b/Shorewall-perl/Shorewall/Common.pm similarity index 100% rename from New/Shorewall/Common.pm rename to Shorewall-perl/Shorewall/Common.pm diff --git a/New/Shorewall/Config.pm b/Shorewall-perl/Shorewall/Config.pm similarity index 100% rename from New/Shorewall/Config.pm rename to Shorewall-perl/Shorewall/Config.pm diff --git a/New/Shorewall/Hosts.pm b/Shorewall-perl/Shorewall/Hosts.pm similarity index 100% rename from New/Shorewall/Hosts.pm rename to Shorewall-perl/Shorewall/Hosts.pm diff --git a/New/Shorewall/IPAddrs.pm b/Shorewall-perl/Shorewall/IPAddrs.pm similarity index 100% rename from New/Shorewall/IPAddrs.pm rename to Shorewall-perl/Shorewall/IPAddrs.pm diff --git a/New/Shorewall/Interfaces.pm b/Shorewall-perl/Shorewall/Interfaces.pm similarity index 100% rename from New/Shorewall/Interfaces.pm rename to Shorewall-perl/Shorewall/Interfaces.pm diff --git a/New/Shorewall/Macros.pm b/Shorewall-perl/Shorewall/Macros.pm similarity index 100% rename from New/Shorewall/Macros.pm rename to Shorewall-perl/Shorewall/Macros.pm diff --git a/New/Shorewall/Nat.pm b/Shorewall-perl/Shorewall/Nat.pm similarity index 100% rename from New/Shorewall/Nat.pm rename to Shorewall-perl/Shorewall/Nat.pm diff --git a/New/Shorewall/Policy.pm b/Shorewall-perl/Shorewall/Policy.pm similarity index 100% rename from New/Shorewall/Policy.pm rename to Shorewall-perl/Shorewall/Policy.pm diff --git a/New/Shorewall/Proc.pm b/Shorewall-perl/Shorewall/Proc.pm similarity index 100% rename from New/Shorewall/Proc.pm rename to Shorewall-perl/Shorewall/Proc.pm diff --git a/New/Shorewall/Providers.pm b/Shorewall-perl/Shorewall/Providers.pm similarity index 100% rename from New/Shorewall/Providers.pm rename to Shorewall-perl/Shorewall/Providers.pm diff --git a/New/Shorewall/Proxyarp.pm b/Shorewall-perl/Shorewall/Proxyarp.pm similarity index 100% rename from New/Shorewall/Proxyarp.pm rename to Shorewall-perl/Shorewall/Proxyarp.pm diff --git a/New/Shorewall/Rules.pm b/Shorewall-perl/Shorewall/Rules.pm similarity index 100% rename from New/Shorewall/Rules.pm rename to Shorewall-perl/Shorewall/Rules.pm diff --git a/New/Shorewall/Tc.pm b/Shorewall-perl/Shorewall/Tc.pm similarity index 100% rename from New/Shorewall/Tc.pm rename to Shorewall-perl/Shorewall/Tc.pm diff --git a/New/Shorewall/Tunnels.pm b/Shorewall-perl/Shorewall/Tunnels.pm similarity index 100% rename from New/Shorewall/Tunnels.pm rename to Shorewall-perl/Shorewall/Tunnels.pm diff --git a/New/Shorewall/Zones.pm b/Shorewall-perl/Shorewall/Zones.pm similarity index 100% rename from New/Shorewall/Zones.pm rename to Shorewall-perl/Shorewall/Zones.pm diff --git a/New/compiler b/Shorewall-perl/compiler similarity index 100% rename from New/compiler rename to Shorewall-perl/compiler diff --git a/New/compiler.pl b/Shorewall-perl/compiler.pl similarity index 100% rename from New/compiler.pl rename to Shorewall-perl/compiler.pl diff --git a/New/install.sh b/Shorewall-perl/install.sh similarity index 100% rename from New/install.sh rename to Shorewall-perl/install.sh diff --git a/New/prog.footer b/Shorewall-perl/prog.footer similarity index 100% rename from New/prog.footer rename to Shorewall-perl/prog.footer diff --git a/New/prog.functions b/Shorewall-perl/prog.functions similarity index 100% rename from New/prog.functions rename to Shorewall-perl/prog.functions diff --git a/New/prog.header b/Shorewall-perl/prog.header similarity index 100% rename from New/prog.header rename to Shorewall-perl/prog.header diff --git a/New/releasenotes.txt b/Shorewall-perl/releasenotes.txt similarity index 100% rename from New/releasenotes.txt rename to Shorewall-perl/releasenotes.txt diff --git a/New/shorewall-perl.spec b/Shorewall-perl/shorewall-perl.spec similarity index 100% rename from New/shorewall-perl.spec rename to Shorewall-perl/shorewall-perl.spec diff --git a/Shorewall/lib.base b/Shorewall/lib.base index 092394940..67a529711 100644 --- a/Shorewall/lib.base +++ b/Shorewall/lib.base @@ -28,7 +28,7 @@ # and /usr/share/shorewall-lite/shorecap. # -SHOREWALL_LIBVERSION=30401 +SHOREWALL_LIBVERSION=30402 [ -n "${VARDIR:=/var/lib/shorewall}" ] [ -n "${SHAREDIR:=/usr/share/shorewall}" ] @@ -826,6 +826,13 @@ get_routed_networks() # $1 = interface name, $2-n = Fatal error message done } +get_interface_bcasts() # $1 = interface +{ + local addresses= + + ip -f inet addr show dev $1 2> /dev/null | grep 'inet.*brd' | sed 's/inet.*brd //; s/scope.*//;' | sort -u +} + # # Internal version of 'which' #