From owner-freebsd-net Thu Jul 18 10:34:51 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8521137B400 for ; Thu, 18 Jul 2002 10:34:48 -0700 (PDT) Received: from isilon.com (isilon.com [65.101.129.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id E87E643E6A for ; Thu, 18 Jul 2002 10:34:47 -0700 (PDT) (envelope-from bbaumann@isilon.com) Received: from localhost (localhost [127.0.0.1]) by isilon.com (8.12.2/8.11.1) with ESMTP id g6IHYkl3010486; Thu, 18 Jul 2002 10:34:47 -0700 (PDT) (envelope-from bbaumann@isilon.com) Date: Thu, 18 Jul 2002 10:34:46 -0700 (PDT) From: Bill Baumann To: Garrett Wollman Cc: freebsd-net@FreeBSD.ORG Subject: Re: Inconsistency between net/if.c and several ethernet drivers In-Reply-To: <200207171812.g6HICmm8097762@khavrinen.lcs.mit.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 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: > < 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