Re: [tcpdump-workers] difference between pcap_dispatch and pcap_loop

2005-01-30 Thread Guy Harris
aman Reddy wrote: can anyone please tell me the difference between pcap_dispatch and pcap_loop. To quote the current CVS libpcap man page: pcap_dispatch() is used to collect and process packets. cnt specifies the maximum number of packets to process before returning. This is not a minimum num

[tcpdump-workers] difference between pcap_dispatch and pcap_loop

2005-01-28 Thread aman Reddy
Dear All, can anyone please tell me the difference between pcap_dispatch and pcap_loop. and one more thing In the following pcap_dispatch(pcap_session,3,packet_hdl,(u_char*)&t) the second argument specifies how many packets it has to capture. Please correct me if I am wrong. I am assumin