From owner-freebsd-current@FreeBSD.ORG Wed Aug 10 08:50:10 2005 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6131C16A41F; Wed, 10 Aug 2005 08:50:10 +0000 (GMT) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from transport.cksoft.de (transport.cksoft.de [62.111.66.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA0A043D45; Wed, 10 Aug 2005 08:50:09 +0000 (GMT) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from transport.cksoft.de (localhost [127.0.0.1]) by transport.cksoft.de (Postfix) with ESMTP id 6810D1FF9AB; Wed, 10 Aug 2005 10:50:08 +0200 (CEST) Received: by transport.cksoft.de (Postfix, from userid 66) id 090D41FF9A7; Wed, 10 Aug 2005 10:50:06 +0200 (CEST) Received: by mail.int.zabbadoz.net (Postfix, from userid 1060) id 9B8011562F; Wed, 10 Aug 2005 08:45:46 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.int.zabbadoz.net (Postfix) with ESMTP id 98E6E1560B; Wed, 10 Aug 2005 08:45:46 +0000 (UTC) Date: Wed, 10 Aug 2005 08:45:46 +0000 (UTC) From: "Bjoern A. Zeeb" X-X-Sender: bz@e0-0.zab2.int.zabbadoz.net To: Hajimu UMEMOTO In-Reply-To: Message-ID: References: <200508091657.12032.jhb@FreeBSD.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS cksoft-s20020300-20031204bz on transport.cksoft.de Cc: FreeBSD current mailing list , John Baldwin Subject: Re: LOR + panic in scope6.c 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: Wed, 10 Aug 2005 08:50:10 -0000 On Wed, 10 Aug 2005, Hajimu UMEMOTO wrote: > Hi, > > >>>>> On Tue, 9 Aug 2005 21:22:35 +0000 (UTC) > >>>>> "Bjoern A. Zeeb" said: > > bzeeb> The code goes about like this: > > bzeeb> ... > bzeeb> SK_UNLOCK(sc); > bzeeb> ether_ifattach(ifp, eaddr); > bzeeb> SK_LOCK(sc); > bzeeb> ... > bzeeb> SK_UNLOCK(sc); > bzeeb> if (mii_phy_probe(dev, &sc_if->sk_miibus, > bzeeb> sk_ifmedia_upd, sk_ifmedia_sts)) { > bzeeb> printf("skc%d: no PHY found!\n", sc_if->sk_unit); > bzeeb> boom ==>> ether_ifdetach(ifp); > bzeeb> if_free(ifp); > bzeeb> error = ENXIO; > bzeeb> goto fail; > bzeeb> } > > > bzeeb> I guess I should check tomorrow that if_attachdomain1 really calls > bzeeb> the routines for AF_INET6 and what they do... > > ether_ifattach() is called, and ether_ifattach() calls if_attach(). > if_attachdomain1() is called from if_attach(). So, > ifp->if_afdata[AF_INET6] should be initialized. > However, domain_init_status was introduced, and it may prevent > if_attachdomain1() from initializing ifp->if_afdata. So, I suspect > the state of domain_init_status. Yupp. seen that netinet6 code also seems to DTRT so I am currently adding debug printfs everywhere to see what gets called when or if things get called... -- Bjoern A. Zeeb bzeeb at Zabbadoz dot NeT