Relax Shorewall-perl dependency on Address Type Match

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6960 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep
2007-07-25 23:15:37 +00:00
parent bef3a86aef
commit b43a6c4cb6
8 changed files with 137 additions and 28 deletions

View File

@ -162,3 +162,12 @@ get_device_mtu1() # $1 = device
fi
}
#
# Get a list of all configured broadcast addresses on the system
#
get_all_bcasts()
{
ip -f inet addr show 2> /dev/null | grep 'inet.*brd' | sed 's/inet.*brd //; s/scope.*//;' | sort -u
}