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