From owner-freebsd-bugs@FreeBSD.ORG Tue Mar 18 15:50:00 2014 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D67659B9 for ; Tue, 18 Mar 2014 15:50:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 988E63CF for ; Tue, 18 Mar 2014 15:50:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s2IFo0ZZ077738 for ; Tue, 18 Mar 2014 15:50:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s2IFo0Qr077737; Tue, 18 Mar 2014 15:50:00 GMT (envelope-from gnats) Resent-Date: Tue, 18 Mar 2014 15:50:00 GMT Resent-Message-Id: <201403181550.s2IFo0Qr077737@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Alan Somers Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 014C35C8 for ; Tue, 18 Mar 2014 15:41:33 +0000 (UTC) Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E209328F for ; Tue, 18 Mar 2014 15:41:32 +0000 (UTC) Received: from cgiserv.freebsd.org ([127.0.1.6]) by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s2IFfWXA009074 for ; Tue, 18 Mar 2014 15:41:32 GMT (envelope-from nobody@cgiserv.freebsd.org) Received: (from nobody@localhost) by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s2IFfWpB009070; Tue, 18 Mar 2014 15:41:32 GMT (envelope-from nobody) Message-Id: <201403181541.s2IFfWpB009070@cgiserv.freebsd.org> Date: Tue, 18 Mar 2014 15:41:32 GMT From: Alan Somers To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: bin/187699: Nondefault FIBs don't get loopback addresses X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Mar 2014 15:50:00 -0000 >Number: 187699 >Category: bin >Synopsis: Nondefault FIBs don't get loopback addresses >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Mar 18 15:50:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Alan Somers >Release: 11.0 CURRENT >Organization: Spectra Logic >Environment: FreeBSD alans-fbsd-head 11.0-CURRENT FreeBSD 11.0-CURRENT #40 r263266: Mon Mar 17 13:07:35 MDT 2014 alans@ns1.eng.sldomain.com:/vmpool/obj/usr/home/alans/freebsd/head/sys/GENERIC amd64 >Description: "ping 127.0.0.1" and "ping6 ::1" should always work, regardless of which FIB is in use. However, they don't. ipv4_up() in network.subr ensures adds the 127.0.0.1 address to lo0 in the default fib, which causes the kernel to add it to the default fib's routing table. But nothing adds that address to alternate fibs. Nor does anything add ::1 to the inet6 routing tables for alternate FIBs. IMHO, the best way to solve this bug would be to add 127.0.0.1 and ::1 static routes in /etc/rc.d/routing in the functions static_inet() and static_inet6(). >How-To-Repeat: In /boot/loader.conf.local: net.fibs="4" net.add_addr_allfibs="0" setfib 1 ping localhost # This will fail, but it should succeed setfib 1 ping6 ::1 # This will fail, but it should succeed. >Fix: Working on a patch now ... >Release-Note: >Audit-Trail: >Unformatted: