Sean Boudreau(deleted)
|
Re: Reg -Packet filter example
|
Sean Boudreau(deleted)
06/21/2009 6:47 PM
post32181
|
Re: Reg -Packet filter example
On Sun, Jun 21, 2009 at 08:54:46AM -0400, Senthil K wrote:
> Hi ,
>
> I have gone through the packet filter interface document,is there any other example code.
lsm-pf.so is an example that uses the pfil interface.
>
> is there any possibility to send the mbuf structure to my application.
There's currently no way to pass an mbuf out of
the stack. If pfil is used in a stack module
an mbuf can be manipulated directly.
>
> How can my application use to interact packet filter interface and tell compile and load the pf support.
If by "application" you mean a process outside of io-pkt
then the pfil interface can't be used. If you want to
pass packet data outside of the stack take a look at BPF /
libpcap.
Regards,
-seanb
|
|
|