Networking Forums

Networking Forums > Computer Networking > Linux Networking > Packet filter statistics question

Reply
Thread Tools Display Modes

Packet filter statistics question

 
 
chukie_egg
Guest
Posts: n/a

 
      04-13-2005, 10:00 AM
Hi! I'm making a test on linux packet filtering (using BPF). I set the
filter with setsockopt(..., SO_ATTACH_FILTER, ...). The problem I have
is how can I get the number of packets that don't pass the filter to
make some statistics. I searched the groups but didn't find a hint on
this. I tried with the tpacket_stats structure but it doesn't help me
since tp_drops is the number of packets that were big enough to
overcome the packet receive buffer *AFTER* passing the filter.
Is there any solution on this?
Thanks. Chukie.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dropped Packet Statistics Geoff Lane Broadband 4 02-14-2008 08:06 PM
Dropped Packet Statistics Geoff Lane Home Networking 0 02-13-2008 08:45 PM
BPF packet filter and pcap_compile() lulepenguin Linux Networking 0 08-25-2005 07:49 AM
vpn packet filter in win2k3 cboesch Windows Networking 1 07-13-2004 09:31 AM
Zyxel 650H DSL modem packet filter setting artw Broadband 3 08-04-2003 08:26 AM



1 2 3 4 5 6 7 8 9 10 11