Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Jun 2002 14:14:20 -0600
From:      Arthur Peet <arthur.peet@toltec.biz>
To:        freebsd-questions@FreeBSD.ORG
Subject:   bpf/netgraph interaction
Message-ID:  <5.1.1.6.2.20020627140603.0228e490@mail.toltecint.net>

next in thread | raw e-mail | index | archive | help
G'day.

I posted this earlier today to freebsd-net and now that I have read more, I 
guess I should have posted it here first.  Apologies to those on both mail 
lists.

Can anyone explain the relationship between BPF and netgraph sockets? I am 
trying to intercept packets destined for a process which is using BPF for 
read and write operations on an interface (and drop not-so-good packets). I 
can see all packets on the interface (using NgRecvData), however I am 
unable to drop the bad packets (by not calling my NgSendData function) as 
the process using BPF seems to be bypassing the netgraph functions.

Thanks,

-Art




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.1.1.6.2.20020627140603.0228e490>