From owner-freebsd-hackers Fri Oct 17 18:48:28 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id SAA21691 for hackers-outgoing; Fri, 17 Oct 1997 18:48:28 -0700 (PDT) (envelope-from owner-freebsd-hackers) Received: from smtp04.primenet.com (smtp04.primenet.com [206.165.5.85]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id SAA21682 for ; Fri, 17 Oct 1997 18:48:22 -0700 (PDT) (envelope-from tlambert@usr06.primenet.com) Received: (from daemon@localhost) by smtp04.primenet.com (8.8.7/8.8.7) id SAA15120; Fri, 17 Oct 1997 18:48:21 -0700 (MST) Received: from usr06.primenet.com(206.165.6.206) via SMTP by smtp04.primenet.com, id smtpd015118; Fri Oct 17 18:48:13 1997 Received: (from tlambert@localhost) by usr06.primenet.com (8.8.5/8.8.5) id SAA15414; Fri, 17 Oct 1997 18:47:55 -0700 (MST) From: Terry Lambert Message-Id: <199710180147.SAA15414@usr06.primenet.com> Subject: Re: Freebsd 3.0 current fails ipfilter 3.2b8 build (fwd) To: darrenr@cyber.com.au (Darren Reed) Date: Sat, 18 Oct 1997 01:47:39 +0000 (GMT) Cc: julian@whistle.com, hackers@FreeBSD.ORG In-Reply-To: <199710161240.WAA00879@plum.cyber.com.au> from "Darren Reed" at Oct 16, 97 10:40:46 pm X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > > There is an API ? > > What do you want that struct for? > > well, ifconfig, netstat, etc. all need it. > > if you're writing your own LKM for a network driver, you need it. > > if you're writing firewalling packet filtering code, you need it. > > "struct ifnet" is used in _lots_ of places. > > if you want to simulate kernel code, then you also need it. If it's used lots of places, then the API is bad. Kernel internals should not be treated as API. I count your build failures as *good* things. For FreeBSD specific code, it means I can do a grep for an _var,h file, and end up with a list of what I need to rebuild. That is a wonderful thing. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.