It makes the assumption that the ifnet/arpcom structure is at the beginning of the softc structure. In needs to do this to maintain media independence. Also see http://www.freebsd.org/cgi/query-pr.cgi?pr=29249
Jim -----Original Message----- From: 'Luigi Rizzo' [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 03, 2001 2:06 PM To: Jim McGrath Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: softc, ifnet and arpcom overlay On Sat, Nov 03, 2001 at 01:17:24PM -0500, Jim McGrath wrote: > Check mii.c, miibus_attach() I don't see anything strange there, the access is through device_get_softc(dev) which presumably does the right thing and makes no assumption on structure layout. cheers luigi ----------------------------------+----------------------------------------- Luigi RIZZO, [EMAIL PROTECTED] . ACIRI/ICSI (on leave from Univ. di Pisa) http://www.iet.unipi.it/~luigi/ . 1947 Center St, Berkeley CA 94704 Phone: (510) 666 2927 ----------------------------------+----------------------------------------- To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-net" in the body of the message