Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Oct 1997 23:23:16 +0100
From:      Brian Somers <brian@awfulhak.org>
To:        Julian Elischer <julian@whistle.com>
Cc:        Darren Reed <darrenr@cyber.com.au>, hackers@FreeBSD.ORG
Subject:   Re: Freebsd 3.0 current fails ipfilter 3.2b8 build (fwd) 
Message-ID:  <199710152223.XAA18393@awfulhak.demon.co.uk>
In-Reply-To: Your message of "Wed, 15 Oct 1997 08:56:18 PDT." <3444E7A2.41C67EA6@whistle.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> All the "_var.h" files contain variables who'se scope is within the
> kernel only. The only exception is LKMs which should define KERNEL.
> I don't know who did this, (I see in the logs it was garrett)
> but the idea is simply to make it more obvios when you are
> doing the WRONG thing
> and including kernel private variables (that are subject to change, 
> and not part of the API) .
> 
> julian

But "struct ifnet" is decl'd in if_var.h and referenced from many 
other files.  It's therefore necessary to #include if_var.h before 
including the likes of if_ether.h or in_var.h.

>  Darren Reed wrote:
> > 
> > Before I commit a change that will fix this absurdity to FreeBSD (i.e.
> > include if_var.h from if.h), perhaps someone can explain why this
> > (seemingly needless) change was made.

I'd certainly welcome the ``fix'', but I suspect you'll have some 
opposition.

-- 
Brian <brian@Awfulhak.org>, <brian@FreeBSD.org>, <bri@OpenBSD.org>
      <http://www.Awfulhak.org>;
Don't _EVER_ lose your sense of humour....





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199710152223.XAA18393>