From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 855AE138D4D for ; Mon, 24 Oct 2016 20:58:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D0EEDE0851; Mon, 24 Oct 2016 20:58:28 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9A6FDE0851 for ; Mon, 24 Oct 2016 20:58:28 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9CCD534155D for ; Mon, 24 Oct 2016 20:58:27 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 69253308 for ; Mon, 24 Oct 2016 20:58:26 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <1477342580.699636d47ce69ad2ada2748e4522447dc57aadf9.robbat2@OpenRC> Subject: [gentoo-commits] proj/netifrc:master commit in: net/ X-VCS-Repository: proj/netifrc X-VCS-Files: net/iproute2.sh X-VCS-Directories: net/ X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: 699636d47ce69ad2ada2748e4522447dc57aadf9 X-VCS-Branch: master Date: Mon, 24 Oct 2016 20:58:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: d58c25ac-7509-4bd3-a6d5-5e326e4de593 X-Archives-Hash: 86eab200c9445cda017d14cfd28746ee commit: 699636d47ce69ad2ada2748e4522447dc57aadf9 Author: Robin H. Johnson gentoo org> AuthorDate: Mon Oct 24 20:56:20 2016 +0000 Commit: Robin H. Johnson gentoo org> CommitDate: Mon Oct 24 20:56:20 2016 +0000 URL: https://gitweb.gentoo.org/proj/netifrc.git/commit/?id=699636d4 net/iproute2: no automatic scope=host on loopback. Busybox 'ip address add' does not support the 'scope' argument. It DOES support the scope argument for 'ip address show', as well as all of 'ip route'. The kernel does get automatic scope correct now, so drop any automatic setting of scope to host when it was not otherwise specified, and let the kernel make it's own decision. X-Gentoo-Bug: 487208 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=487208 Signed-off-by: Robin H. Johnson gentoo.org> net/iproute2.sh | 5 ----- 1 file changed, 5 deletions(-) diff --git a/net/iproute2.sh b/net/iproute2.sh index 32d3c88..6efa2e7 100644 --- a/net/iproute2.sh +++ b/net/iproute2.sh @@ -162,11 +162,6 @@ _add_address() esac done - # Always scope lo addresses as host unless specified otherwise - if [ "${IFACE}" = "lo" ]; then - [ -z "$scope" ] && scope="host" - fi - # figure out the broadcast address if it is not specified # This must NOT be set for IPv6 addresses case $family in