[Top][All Lists]

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

Re: GNU Mach interface to packet filters

From: Marco Gerards
Subject: Re: GNU Mach interface to packet filters
Date: Wed, 19 Apr 2006 16:32:57 +0200
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

Richard Braun <syn@hurdfr.org> writes:

> NETF filters are considered to be native filters, so there is no macro
> for them (a requirement for all non-native filters is to be non-zero).
> Macros were also added in include/device/bpf.h :
> #define BPF_BEGIN     NETF_BPF
> #define BPF_IN                NETF_IN
> #define BPF_OUT               NETF_OUT
> Here is the NETF filter that would be used in pfinet :
> static short ether_filter[] =
> {
>   NETF_IN, /* header */
>   1
> };

Is it possible to move NETF_IN to the end of the struct?  Would that
mean the interface change would not break existing code?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]