From owner-freebsd-current@FreeBSD.ORG Tue Aug 4 05:45:09 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 61398106566C; Tue, 4 Aug 2009 05:45:09 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mail.cksoft.de (mail.cksoft.de [195.88.108.3]) by mx1.freebsd.org (Postfix) with ESMTP id 187078FC08; Tue, 4 Aug 2009 05:45:08 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from localhost (amavis.fra.cksoft.de [192.168.74.71]) by mail.cksoft.de (Postfix) with ESMTP id 93CCD41C6A1; Tue, 4 Aug 2009 07:45:07 +0200 (CEST) X-Virus-Scanned: amavisd-new at cksoft.de Received: from mail.cksoft.de ([195.88.108.3]) by localhost (amavis.fra.cksoft.de [192.168.74.71]) (amavisd-new, port 10024) with ESMTP id YnnEDe9BBkin; Tue, 4 Aug 2009 07:45:06 +0200 (CEST) Received: by mail.cksoft.de (Postfix, from userid 66) id 2B9F441C69F; Tue, 4 Aug 2009 07:45:06 +0200 (CEST) Received: from maildrop.int.zabbadoz.net (maildrop.int.zabbadoz.net [10.111.66.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.int.zabbadoz.net (Postfix) with ESMTP id A0AF94448E6; Tue, 4 Aug 2009 05:44:48 +0000 (UTC) Date: Tue, 4 Aug 2009 05:44:48 +0000 (UTC) From: "Bjoern A. Zeeb" X-X-Sender: bz@maildrop.int.zabbadoz.net To: "Li, Qing" In-Reply-To: Message-ID: <20090804053838.I93661@maildrop.int.zabbadoz.net> References: <20090803174617.GJ1292@hoeg.nl> <20090803190934.GK1292@hoeg.nl> <20090803195455.I93661@maildrop.int.zabbadoz.net> X-OpenPGP-Key: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Qing Li , FreeBSD Current Subject: RE: Problem with latest HEAD and IPv6: in6_ifinit: insertion failed X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Aug 2009 05:45:09 -0000 On Mon, 3 Aug 2009, Li, Qing wrote: >> >> I then changed the script to s,fxp0,em1,g s,::1,::2,g and re-run: >> >> > ----------------------------------------------------------------------- >> - >> dut# sh test.sh >> 2001:db8::1 0:e0:81:81:13:ad fxp0 permanent R >> 2001:db8::1 2001:db8::1 UH fxp0 >> em1: flags=8802 metric 0 mtu 1500 >> ifconfig: ioctl (SIOCAIFADDR): File exists >> 2001:db8::1 0:e0:81:81:13:ad fxp0 permanent R >> 2001:db8::2 0:e0:81:81:13:9d em1 permanent R >> 2001:db8::1 2001:db8::1 UH fxp0 >> 2001:db8::2 2001:db8::2 UH em1 >> em1: flags=8843 metric 0 mtu > 1500 >> > ----------------------------------------------------------------------- > > > Your output appears to come from either an outdated in6.c > or a custom version. I expect to see something like the > following for each interface address from netstat output: > > Destination Gateway Flags Netif > expire > ----------------------------------------------------------------------- > 2001:db8::1 link#1 UHS lo0 > 2001:db8::2 link#2 UHS lo0 > ----------------------------------------------------------------------- Yes I would as well, unless something bad happens(tm). > Please verify your source file. bz@dut:/dut/bz/HEAD.svn% ident sys/netinet6/in6.c sys/netinet6/in6.c: $KAME: in6.c,v 1.259 2002/01/21 11:37:50 keiichi Exp $ $FreeBSD: head/sys/netinet6/in6.c 196019 2009-08-01 19:26:27Z rwatson $ bz@dut:/dut/bz/HEAD.svn% svn status sys/netinet6/in6.c bz@dut:/dut/bz/HEAD.svn% And as you can see the IFF_POINTOPOINT from your last commit are not there anymore: 1193 /* 1194 * Remove the loopback route to the interface address. 1195 * The check for the current setting of "nd6_useloopback" is not needed. 1196 */ 1197 if (!(ia->ia_ifp->if_flags & IFF_LOOPBACK)) { 1776 /* 1777 * add a loopback route to self 1778 */ 1779 if (V_nd6_useloopback && !(ifp->if_flags & IFF_LOOPBACK)) { /bz -- Bjoern A. Zeeb The greatest risk is not taking one.