Date: Thu, 18 Jul 2002 10:34:46 -0700 (PDT) From: Bill Baumann <bbaumann@isilon.com> To: Garrett Wollman <wollman@lcs.mit.edu> Cc: freebsd-net@FreeBSD.ORG Subject: Re: Inconsistency between net/if.c and several ethernet drivers Message-ID: <Pine.BSF.4.21.0207171225120.35007-100000@isilon.com> In-Reply-To: <200207171812.g6HICmm8097762@khavrinen.lcs.mit.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
I'm working on just such a driver. It has layers that communicate with assumptions about structure alignment. Moving struct arpcom to the beginning breaks this, and requires scattered changes throughout. :-( Even so I'd rather do it the right way. Unless, I hear someone else disagreeing, I'll assume that arpcom must be at the top of softc and write a problem report against the offending drivers (awi,lnc,pdq,ray). - Bill Baumann On Wed, 17 Jul 2002, Garrett Wollman wrote: > <<On Wed, 17 Jul 2002 10:58:12 -0700 (PDT), Bill Baumann <bbaumann@isilon.com> said: > > > Why bother with a if_softc field when the interface and softc pointer are > > supposed to be the same? Also, the very old Lance driver (lnc) has this > > problem. It makes me wonder how true we are to TCP/IP Illustrated... > > if_softc was added to pacify those who either didn't understand the C > language, or thought they had a good reason why the softc structure > had to begin with some other structure than ifnet. > > -GAWollman > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0207171225120.35007-100000>