Re: [tcpdump-workers] breaking out of pcap_loop

2005-10-19 Thread Guy Harris
Vossie wrote: I am using pcap_loop to capture a given amount of packets. That is easy to implement but now I want to use pcap_loop BUT it must capture packets for a given amount of time. PS: According to man I must use pcap_breakloop. But how? Inside the callback function?- That depends on

Re: [tcpdump-workers] breaking out of pcap_loop

2005-10-19 Thread Vossie
I fix the problem by using global variables :-) Vossie - Original Message - From: "Vossie" <[EMAIL PROTECTED]> To: Sent: Wednesday, October 19, 2005 10:08 AM Subject: [tcpdump-workers] breaking out of pcap_loop Hi everyone I am using pcap_loop to capture a given a

[tcpdump-workers] breaking out of pcap_loop

2005-10-19 Thread Vossie
Hi everyone I am using pcap_loop to capture a given amount of packets. That is easy to implement but now I want to use pcap_loop BUT it must capture packets for a given amount of time. Any ideas? Thanks Vossie PS: According to man I must use pcap_breakloop. But how? Inside the callback func