Re: finishing the if.h/if_var.h split

From: Brooks Davis (brooks_at_one-eyed-alien.net)
Date: 09/30/03

  • Next message: Brooks Davis: "Re: adding if_dev member to struct ifnet"
    Date: Tue, 30 Sep 2003 10:30:33 -0700
    To: John Baldwin <jhb@FreeBSD.org>
    
    
    

    On Tue, Sep 30, 2003 at 01:14:34PM -0400, John Baldwin wrote:
    >
    > On 30-Sep-2003 Bruce Evans wrote:
    > > On Tue, 30 Sep 2003, John Baldwin wrote:
    > >
    > >> On 30-Sep-2003 Bruce Evans wrote:
    > >> > On Mon, 29 Sep 2003, Brooks Davis wrote:
    > >> >> Unfortunately, "soon" hasn't happened yet and it is now tripping me
    > >> >> up. To add the if_dev member to struct ifnet (see the forthcoming
    > >> >> post on that subject), it is necessary for sys/bus.h to be included in
    > >> >> net/if_var.h
    > >> >
    > >> > That would be namespace pollution, so it is not permitted :-). Requiring
    > >> > all files that include <sys/if_var.h> (and especially <sys/if.h> to
    > >> > include <sys/bus.h> would be interface breakage so it is even less
    > >> > permitted.
    > >>
    > >> Well, if if.h stops including if_var.h, then only kernel files that
    > >> include net/if_var.h would need sys/bus.h. I think that's manageable.
    > >
    > > All userland files that include net/if_var.h would also need it (except
    > > they would only need device_t).
    >
    > Is struct ifnet exposed to userland? Ugh, why do we export such things?
    > I guess because ifconfig grovels around in the kernel due to a lack of
    > APIs between the kernel and userland. *sigh*

    ifconfig is actually OK, it uses sysctl. netstat and ifmcstat do go
    grovling around in there as do 4-5 ports. If someone fixed our userland
    that would provide the template to fix the ports since they are all just
    netstat in some form or another.

    -- Brooks

    -- 
    Any statement of the form "X is the one, true Y" is FALSE.
    PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4
    
    



  • Next message: Brooks Davis: "Re: adding if_dev member to struct ifnet"

    Relevant Pages

    • Re: finishing the if.h/if_var.h split
      ... > I guess because ifconfig grovels around in the kernel due to a lack of ... grovling around in there as do 4-5 ports. ... If someone fixed our userland ... netstat in some form or another. ...
      (freebsd-arch)
    • Re: New
      ... or would CVSup be able to update the userland ports, ... 3rd party software -- ports: ... However, installing pre-compiled ... called 'packages' will often be quicker. ...
      (freebsd-questions)
    • Re: New
      ... or would CVSup be able to update the userland ports, ... A FreeBSD 4.9 installation will contain quite modern userland applications. ... You can use cvsup to update both the sources for userland or for the ports ...
      (freebsd-questions)
    • Re: PANIC named - trap.c
      ... >and i got this panic with chrooted bind9 from ports ... >bind8 from userland works fine ...
      (freebsd-current)
    • =?iso-8859-1?Q?Re:_Variable_anh=E4ngen?=
      ... Unter FreeBSD kompiliert der Kernel und das Userland mit make -j4 prächtig, ... Nun würde ich gerne zwecks Übersichtlichkeit am Anfang des Skriptes MAKEFLAGS="j$" setzen. ... Jetzt hab ich eine Funktion PORTS, innerhalb derer ein "-B"an die MAKEFLAGS angehängt werden sollen. ... Try to be backwards compatible by executing a single shell per ...
      (de.comp.os.unix.shell)