From ea3d2ca638ab9278b6e5e5410af4896945fa511d Mon Sep 17 00:00:00 2001 From: teastep Date: Thu, 3 Jan 2008 02:35:49 +0000 Subject: [PATCH] Add comment to prog.header git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@8004 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall-perl/prog.header | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Shorewall-perl/prog.header b/Shorewall-perl/prog.header index 12e8f5abe..d79dd49b4 100644 --- a/Shorewall-perl/prog.header +++ b/Shorewall-perl/prog.header @@ -389,7 +389,9 @@ broadcastaddress() { in_network() # $1 = IP address, $2 = CIDR network { local netmask=$(ip_netmask $2) - + # + # Use string comparison to work around a broken BusyBox ash in OpenWRT + # test $(( $(decodeaddr $1) & $netmask)) = $(( $(decodeaddr ${2%/*}) & $netmask )) }