[Winpcap-users] Global port filter

Abhi acoknight at yahoo.com
Mon Dec 17 04:33:33 GMT 2007


Hi, 

I am trying to modify wpcap to have a filter for certain ports only no
matter what other filter is requested. The reason behind is an app which I
cannot modify and which receives all captured traffic. I am trying to
limit this traffic to certain ports eg using a filter "tcp portrange
 2000-3000".
I tried editing pcap_open and pcap_setfilter by adding pcap_compile and
 setting this filter, but it's still capturing everything.
How could I go about adding a filter which would be in effect ignoring
 other filters requested?

ps. os is windows xp, I have been compiling wpcap using the remote no
 airpcap.

Thanx





      ___________________________________________________________
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 



More information about the Winpcap-users mailing list