Re: LOR + panic in scope6.c

From: Hajimu UMEMOTO <ume_at_FreeBSD.org>
Date: Wed, 10 Aug 2005 17:34:55 +0900
Hi,

>>>>> On Tue, 9 Aug 2005 21:22:35 +0000 (UTC)
>>>>> "Bjoern A. Zeeb" <bzeeb-lists_at_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.

Sincerely,

--
Hajimu UMEMOTO _at_ Internet Mutual Aid Society Yokohama, Japan
ume_at_mahoroba.org  ume_at_{,jp.}FreeBSD.org
http://www.imasy.org/~ume/
Received on Wed Aug 10 2005 - 06:35:01 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:41 UTC