Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Reg -Packet filter example: (3 Items)
   
Reg -Packet filter example  
Hi ,

I have gone through the packet filter interface document,is there any other example code.

is there any possibility to send the mbuf structure to my application.

How can my application use to interact packet filter interface and tell compile and load the pf support.


Thanks and Regards
K.Senthil
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
Re: Reg -Packet filter example  
Hi sean,

I m only getting arp packets alone in the lsm-packfil.so but i m not able to receive other packets.

What should i do to receive all the packets in packet filter module.

Regards
K.Senthil