From owner-freebsd-net Sat Nov 3 11:32:28 2001 Delivered-To: freebsd-net@freebsd.org Received: from apollo.sitaranetworks.com (apollo.sitaranetworks.com [199.103.141.105]) by hub.freebsd.org (Postfix) with ESMTP id 4DF6D37B419 for ; Sat, 3 Nov 2001 11:32:26 -0800 (PST) Received: from rios.sitaranetworks.com (rios.sitaranetworks.com [199.103.141.78]) by apollo.sitaranetworks.com (8.10.2+Sun/8.9.3) with ESMTP id fA3JW4p15244; Sat, 3 Nov 2001 14:32:04 -0500 (EST) Received: by rios.sitaranetworks.com with Internet Mail Service (5.5.2653.19) id ; Sat, 3 Nov 2001 14:32:18 -0500 Message-ID: <31269226357BD211979E00A0C9866DAB01BE79AD@rios.sitaranetworks.com> From: Jim McGrath To: "'Luigi Rizzo'" , Jim McGrath Cc: net@FreeBSD.ORG, mjacob@feral.com Subject: RE: softc, ifnet and arpcom overlay Date: Sat, 3 Nov 2001 14:32:18 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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:rizzo@aciri.org] Sent: Saturday, November 03, 2001 2:06 PM To: Jim McGrath Cc: net@FreeBSD.ORG; mjacob@feral.com 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, luigi@iet.unipi.it . 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 majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message