Re: [tcpdump-workers] Lost packet,

2005-10-19 Thread Wilmar SULAIMAN
Dear Guy, Thanks for very fast reply. 1) Can you explain me a bit more what do you mean by the packet gets drop? Is it mean that the program drops the packet (so it didn't go through the program), but the packet still going through to the system? or both? 2) Do you know where I can get more i

Re: [tcpdump-workers] Lost packet,

2005-10-19 Thread Guy Harris
Wilmar SULAIMAN wrote: Suppose that I've set up a program using libpcap library to capture all the packet that going to the ethernet card. I was wondering is it possible that the program can't capture all the packets due to massive network packets. What I mean by that is that suppose that my

Re: [tcpdump-workers] Lost packet,

2005-10-19 Thread Wilmar SULAIMAN
Dear all Suppose that I've set up a program using libpcap library to capture all the packet that going to the ethernet card. I was wondering is it possible that the program can't capture all the packets due to massive network packets. What I mean by that is that suppose that my computer is t

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 amount of packets. Tha

[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