From 4c2b1406de0be364129e8041b7f4b01a9a816fb8 Mon Sep 17 00:00:00 2001 From: teastep Date: Fri, 28 Feb 2003 15:33:40 +0000 Subject: [PATCH] Remove unused function git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@478 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall/firewall | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/Shorewall/firewall b/Shorewall/firewall index 5269243f5..2c6b83b4e 100755 --- a/Shorewall/firewall +++ b/Shorewall/firewall @@ -792,26 +792,6 @@ find_broadcasts() { done } -# -# Find interface broadcast addresses -# -find_interface_broadcasts() # $1 = Interface name -{ - eval bcast=\$`chain_base ${1}`_broadcast - - if [ "x$bcast" = "xdetect" ]; then - addr="`ip addr show $interface 2> /dev/null`" - if [ -n "`echo "$addr" | grep 'inet.*brd '`" ]; then - addr="`echo "$addr" | \ - grep "inet " | sed 's/^.* inet.*brd //;s/scope.*//'`" - echo $addr | cut -d' ' -f 1 - fi - elif [ "x${bcast}" != "x-" ]; then - echo `separate_list $bcast` - fi - -} - # # Find interface address--returns the first IP address assigned to the passed # device