Indeed. But this brings us to an intersting dilemma. What is a
userspace program to do when it wants to build an LPF and attach it to a
socket? It needs the definitions in <linux/filter.h> to build the
filter.
> Either typedef
> those names yourself or duplicate the structure with types that do
> exist.
Uggh! Does this not sound like a deficiency in the kernel interface to
you? I really shouldn't have to do either of these. There should be a
"userspace" version of the required data structures shouldn't there?
> AF_PACKET is the new way to do this.
Cool. Will look into this.
Thanks very much for your insight on this matter.
b.
-- Brian J. Murrell InterLinx Support Services, Inc. North Vancouver, B.C. 604 983 UNIX Platform and Brand Independent UNIX Support - R3.2 - R4 - BSD- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/