bridge callbacks in if_ed.c?

Luigi Rizzo luigi at freebsd.org
Sun Sep 5 22:29:54 PDT 2004


On Mon, Sep 06, 2004 at 03:01:00AM +0400, Gleb Smirnoff wrote:
...
> L> I'd rather not apply the patch unless you can show that
> L> the current code leads to incorrect behaviour.
> 
> I suspect that packets dropped by bridge_in() called from if_ed will
> not be captured by bpf(4). This is incorrect.

if you read the code you see that the bpf behaviour is
as it should be, and your suspect is unfounded.

-       if (!ifp->if_bpf && BDG_ACTIVE( (ifp) ) ) {

(my summary and pov  on the discussion in a separate email)

cheers
luigi


More information about the freebsd-net mailing list