From owner-cvs-all Fri Dec 14 14:18:47 2001 Delivered-To: cvs-all@freebsd.org Received: from prism.flugsvamp.com (66-188-92-95.mad.wi.charter.com [66.188.92.95]) by hub.freebsd.org (Postfix) with ESMTP id 3DE3837B405; Fri, 14 Dec 2001 14:18:39 -0800 (PST) Received: (from jlemon@localhost) by prism.flugsvamp.com (8.11.6/8.11.6) id fBEMHZM65822; Fri, 14 Dec 2001 16:17:35 -0600 (CST) (envelope-from jlemon) Date: Fri, 14 Dec 2001 16:17:35 -0600 From: Jonathan Lemon To: Luigi Rizzo Cc: Jonathan Lemon , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/net if_var.h Message-ID: <20011214161735.Y377@prism.flugsvamp.com> References: <200112141938.fBEJcao39840@freefall.freebsd.org> <20011214140547.A53193@iguana.aciri.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <20011214140547.A53193@iguana.aciri.org> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Dec 14, 2001 at 02:05:47PM -0800, Luigi Rizzo wrote: > On Fri, Dec 14, 2001 at 11:38:36AM -0800, Jonathan Lemon wrote: > > jlemon 2001/12/14 11:38:36 PST > > > > Modified files: (Branch: RELENG_4) > > sys/net if_var.h > > Log: > > MFC: r1.37; add entries for network device capabilitis. > > > > This is done in a different form; instead of adding new entries to > > 'struct ifnet', we coopt several unused fields in the structure instead, > > in order to preserve binary compatability with previous releases. > > I don't understand this. > > Since you haven't put a #define for if_done and if_poll_recv, any > code that might have used them is going to break, so you might as > well have just replaced the old fields with the new ones. > > Am I wrong ? No; but I did it this way to insure that the structure size didn't change on any of the architectures that we run on. -- Jonathan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message