net/iproute2: Confirmed that broadcast and peer can be used together.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
This commit is contained in:
Robin H. Johnson 2011-12-21 08:10:47 +00:00
parent 8bb4b759eb
commit 7b1c1e1623

View File

@ -139,7 +139,6 @@ _add_address()
# figure out the broadcast address if it is not specified # figure out the broadcast address if it is not specified
# This must NOT be set for IPv6 addresses # This must NOT be set for IPv6 addresses
if [ "${address/:}" = "${address}" ]; then if [ "${address/:}" = "${address}" ]; then
# FIXME: I'm not sure if this should be set if we are passing a peer arg
[ -z "$broadcast" ] && broadcast="+" [ -z "$broadcast" ] && broadcast="+"
elif [ -n "$broadcast" ]; then elif [ -n "$broadcast" ]; then
eerror "Broadcast keywords are not valid with IPv6 addresses" eerror "Broadcast keywords are not valid with IPv6 addresses"