tcpdump mailing list archives

problem with pcap_breakloop while live capture


From: "Pradeep Kumar PALAPARTHY" <p.pradeep09 () gmail com>
Date: Fri, 17 Nov 2006 22:46:26 -0800

Hi All,

I am using pcap library to capture the live packets.
I have have a thread which captures the packets.

In the pcap_dispath iam passing the cnt as -1 since i want to capture
for infinitely.
But when i use the pcap_breakloop to come out of capture, its not
coming out of the capture thread & going into hang state.

How do i break the loop. Is there any way to come out of infinite loop.

Any help will be appreciated.

Thanks in advance,
Pradeep
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: