From a1c655949f1a44b130456bc0aceeb165dbf3bed8 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Fri, 9 Dec 2011 20:49:26 -0600 Subject: iproute2: set a default broadcast address if none is specified Reported-by: Spooky Ghost X-Gentoo-Bug: 392593 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=392593 --- net/iproute2.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/iproute2.sh b/net/iproute2.sh index 91282ea6..214841e4 100644 --- a/net/iproute2.sh +++ b/net/iproute2.sh @@ -134,6 +134,9 @@ _add_address() [ -z "$scope" ] && scope="scope host" fi + # figure out the broadcast address if it is not specified + [ -z "$broadcast" ] && broadcast="broadcast +" + set -- "${address}${netmask}" $peer $broadcast $anycast $label $scope dev "${IFACE}" $valid_lft $preferred_lft $home $nodad veinfo ip addr add "$@" ip addr add "$@" -- cgit v1.2.3