mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-09 11:17:02 +02:00
ipv6 address fixes
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@1083 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
e30c2a7ec8
commit
8daac8c200
@ -844,7 +844,7 @@ find_broadcasts() {
|
|||||||
for interface in $all_interfaces; do
|
for interface in $all_interfaces; do
|
||||||
eval bcast=\$`chain_base $interface`_broadcast
|
eval bcast=\$`chain_base $interface`_broadcast
|
||||||
if [ "x$bcast" = "xdetect" ]; then
|
if [ "x$bcast" = "xdetect" ]; then
|
||||||
addr="`ip addr show $interface 2> /dev/null`"
|
addr="`ip -f inet addr show $interface 2> /dev/null`"
|
||||||
if [ -n "`echo "$addr" | grep 'inet.*brd '`" ]; then
|
if [ -n "`echo "$addr" | grep 'inet.*brd '`" ]; then
|
||||||
addr="`echo "$addr" | \
|
addr="`echo "$addr" | \
|
||||||
grep "inet " | sed 's/^.* inet.*brd //;s/scope.*//'`"
|
grep "inet " | sed 's/^.* inet.*brd //;s/scope.*//'`"
|
||||||
@ -4050,7 +4050,7 @@ add_ip_aliases()
|
|||||||
#
|
#
|
||||||
# Get all of the lines that contain inet addresses
|
# Get all of the lines that contain inet addresses
|
||||||
#
|
#
|
||||||
ip addr show $interface 2> /dev/null | grep 'inet' | while read inet cidr rest ; do
|
ip -f inet addr show $interface 2> /dev/null | grep 'inet' | while read inet cidr rest ; do
|
||||||
case $cidr in
|
case $cidr in
|
||||||
*/*)
|
*/*)
|
||||||
if in_subnet $external $cidr; then
|
if in_subnet $external $cidr; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user