I really appreciate any comment or solution.

Thanks,

On Wed, Dec 10, 2014 at 4:17 PM, Behrooz Shafiee <[email protected]>
wrote:

> Hello everyone,
>
>  I have implemented my little protocol over pf_ring and set the ethernet
> type to 0xAAAA(index 12 and 13, because 0-5 is the dst_mac and 6-11 is
> src_mac). Therefore, I am only interested in these type of packets! I was
> wondering how can I filter incoming packets, to only rcv my own packets. I
> looked into the kernel module code of pf_ring and find out
> skb_ring_handler() function is where the NAPI delivers the packet to
> PF_RING should I modify that function to drop the packet and don't add it
> the buffer or is there a better way to do it? I saw that bpf filtering
> mechanism but I'm not sure how should I use it.
>
> Thanks,
> --
> Behrooz
>



-- 
Behrooz
_______________________________________________
Ntop-misc mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-misc

Reply via email to