From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RZDAD-0000Y0-1S for garchives@archives.gentoo.org; Sat, 10 Dec 2011 02:59:49 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D917021C097; Sat, 10 Dec 2011 02:59:40 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id A149321C097 for ; Sat, 10 Dec 2011 02:59:40 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 21D121B4008 for ; Sat, 10 Dec 2011 02:59:40 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 714BA80042 for ; Sat, 10 Dec 2011 02:59:39 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: Subject: [gentoo-commits] proj/openrc:master commit in: net/ X-VCS-Repository: proj/openrc X-VCS-Files: net/iproute2.sh X-VCS-Directories: net/ X-VCS-Committer: WilliamH X-VCS-Committer-Name: William Hubbs X-VCS-Revision: a1c655949f1a44b130456bc0aceeb165dbf3bed8 Date: Sat, 10 Dec 2011 02:59:39 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 1596f9d3-e7fc-4aac-95ff-6cefad7c5c51 X-Archives-Hash: abe50693bf43ba4d85f675fb645478df commit: a1c655949f1a44b130456bc0aceeb165dbf3bed8 Author: William Hubbs gentoo org> AuthorDate: Sat Dec 10 02:49:26 2011 +0000 Commit: William Hubbs gentoo org> CommitDate: Sat Dec 10 02:49:26 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/openrc.git;a=3D= commit;h=3Da1c65594 iproute2: set a default broadcast address if none is specified Reported-by: Spooky Ghost blueyounder.co.uk> X-Gentoo-Bug: 392593 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=3D392593 --- net/iproute2.sh | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/net/iproute2.sh b/net/iproute2.sh index 91282ea..214841e 100644 --- a/net/iproute2.sh +++ b/net/iproute2.sh @@ -134,6 +134,9 @@ _add_address() [ -z "$scope" ] && scope=3D"scope host" fi =20 + # figure out the broadcast address if it is not specified + [ -z "$broadcast" ] && broadcast=3D"broadcast +" + set -- "${address}${netmask}" $peer $broadcast $anycast $label $scope d= ev "${IFACE}" $valid_lft $preferred_lft $home $nodad veinfo ip addr add "$@" ip addr add "$@"