tcpdump mailing list archives

Re: Problem with pcap_compile function.


From: Guy Harris <guy () alum mit edu>
Date: Mon, 23 Jan 2012 10:12:44 -0800


On Jan 22, 2012, at 11:16 PM, narmada wrote:

I am using wpcap.lib for packet capturing in my application. my application is written in delphi. i can able to 
getting packets. But when i am applying filter to the device it is not able to apply filter to that.. The 
pcap_compile function returning -1 value.. Can u please help me why its giving -1..

It's giving -1 for the reason described by the string that a call to pcap_geterr() on the pcap_t, after the failing 
call to pcap_compile(), would return.

and suggest what to do for applying filter to the device..?

Apply a valid filter.

-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: