Remove unused function

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@478 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2003-02-28 15:33:40 +00:00
parent 370bb8d1f4
commit 4c2b1406de

View File

@ -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