DragonFly BSD
DragonFly commits List (threaded) for 2006-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: cvs commit: src/sys/contrib/ipfilter/netinet ip_fil.h


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Fri, 28 Jul 2006 09:19:11 -0700 (PDT)

:>   Modified files:
:>     sys/contrib/ipfilter/netinet ip_fil.h 
:>   Log:
:>   Why is ip_fil.h trying to declare kernel procedures for userland #include's?
:>   Remove them.
:
:Because ip_fil.c is shared between kernel and userland program(ipftest).

    Yah, but insofar as I can tell the userland program does not actually
    try to call those procedures.

    Generally speaking, trying to share source files between kernel and
    userland is a mistake.  CAM tries to do the same thing.  The result
    is usually a big mess (and, indeed, the ipfilter code has so many
    #ifdef's in it that it took me 40 minutes just to figure out which
    declarations were even being compiled!).  vinum has similar issues,
    but in vinum's case the problem is that it tries to export huge complex
    kernel structures to the userland 'vinum' program.

    Not that there is much we can do about it at the moment.

					-Matt
					Matthew Dillon 
					<dillon@xxxxxxxxxxxxx>



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]