From owner-freebsd-net@FreeBSD.ORG Thu Jan 2 10:29:49 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 64EBA9DE for ; Thu, 2 Jan 2014 10:29:49 +0000 (UTC) Received: from mail-lb0-x22e.google.com (mail-lb0-x22e.google.com [IPv6:2a00:1450:4010:c04::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E62571935 for ; Thu, 2 Jan 2014 10:29:48 +0000 (UTC) Received: by mail-lb0-f174.google.com with SMTP id y6so7231331lbh.33 for ; Thu, 02 Jan 2014 02:29:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=K7sHdWX/EZ3Nrg5r9m9OL9+yfRdUyWGX6OCfMDXIYGM=; b=n/x49qIi240A8Tuig6p/cr0Yt69rn2zqqLII+6JxVclZyhnlaxL1uC2GguZOpI8Rz3 c5e7yiIb5Bom5Wyz7+yLXA/lmM4gtWxbDWaciZxxYAFGL1mDJ+oh6B6iv1Cu81+2vOKE LJF+L38JxeXE3eowql36ba/n7c82f9t41l6Ql715wzzD0R4pQhN5DSInzWrAT2WsT34y m4kSS6LmfTUJxlVASAGdqFqZiW8aKmIdmM/kPcag7PO2ivJJRmDcDVU6EqPbMUKiCDav tU3b/uwJ5kdDIOR1VsjAeA+QBNi2ny84QNzd1UqFxl+Ng1LaAvEV8TMFWp3iENG2Bl44 My3A== MIME-Version: 1.0 X-Received: by 10.152.23.39 with SMTP id j7mr21100203laf.28.1388658586980; Thu, 02 Jan 2014 02:29:46 -0800 (PST) Received: by 10.114.242.33 with HTTP; Thu, 2 Jan 2014 02:29:46 -0800 (PST) Date: Thu, 2 Jan 2014 10:29:46 +0000 Message-ID: Subject: Interface routes left over undeletable with RADIX_MPATH From: Nikolay Denev To: "freebsd-net@freebsd.org" Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jan 2014 10:29:49 -0000 Hi, While digging around for the "rtfree 2" panics with RADIX_MPATH I've reported in misc/185092, (yeah, should've been kern, or net, not misc) I've noticed that the interface routes that are installed on the loopback interface are left over when the address is removed and RADIX_MPATH is used. Moreover, since these now I believe are flagged as RTF_PINNED it's unable to delete them. Here is what happens with 10.0-RC3 GENERIC: # ifconfig em0 10.10.10.10/24 # netstat -rnfinet | grep 10.10.10.10 # 10.10.10.10 link#1 UHS 0 0 lo0 # ifconfig em0 delete # netstat -rnfinet | grep 10.10.10.10 # However, this happens with RADIX_MPATH kernel: # ifconfig em0 10.10.10.10/24 # netstat -rnfinet | grep 10.10.10.10 # 10.10.10.10 link#1 UHS 0 0 lo0 # ifconfig em0 delete # netstat -rnfinet | grep 10.10.10.10 # 10.10.10.10 link#1 UHS 0 0 lo0 # route delete 10.10.10.10 -iface lo0 # route: writing to routing socket: No such process # delete host 10.10.10.10: gateway lo0 fib0: not in table The address is successfully removed from the em0 interface, but the route over the loopback interface stays, even survives "route flush" --Nikolay