Date: Wed, 10 Aug 2005 08:45:46 +0000 (UTC) From: "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net> To: Hajimu UMEMOTO <ume@FreeBSD.org> Cc: FreeBSD current mailing list <current@FreeBSD.org>, John Baldwin <jhb@FreeBSD.org> Subject: Re: LOR + panic in scope6.c Message-ID: <Pine.BSF.4.53.0508100844170.90867@e0-0.zab2.int.zabbadoz.net> In-Reply-To: <ygepssm42c0.wl%ume@mahoroba.org> References: <Pine.BSF.4.53.0508091138160.90867@e0-0.zab2.int.zabbadoz.net> <Pine.BSF.4.53.0508091525430.90867@e0-0.zab2.int.zabbadoz.net> <Pine.BSF.4.53.0508091841000.90867@e0-0.zab2.int.zabbadoz.net> <200508091657.12032.jhb@FreeBSD.org> <Pine.BSF.4.53.0508092112390.90867@e0-0.zab2.int.zabbadoz.net> <ygepssm42c0.wl%ume@mahoroba.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 10 Aug 2005, Hajimu UMEMOTO wrote:
> Hi,
>
> >>>>> On Tue, 9 Aug 2005 21:22:35 +0000 (UTC)
> >>>>> "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.53.0508100844170.90867>
