tcpdump mailing list archives

How to find the exact error happened when the pcap_loop returns -1


From: Shameem Ahamed <shameem.ahamed () hotmail com>
Date: Thu, 2 Apr 2009 11:06:35 +0530


Hi All,

I am calling the pcap_loop function with a count of -1 (I want to process all the packets in the captured pcap file.).

After the first correct packet (packet with a valid payload), pcap_loop terminates with a -1, which indicates an 
internal error .


Am i correct ?.


How can i know the exact error message, as we are not passing any errorbuff we can't use it  rt?.


Regards,
Shameem

_________________________________________________________________
The new Windows Live Messenger. You don’t want to miss this.
http://www.microsoft.com/india/windows/windowslive/messenger.aspx-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: