tcpdump mailing list archives

Re: pcap_next_ex() vs pcap_loop()


From: Guy Harris <guy () alum mit edu>
Date: Fri, 5 Mar 2010 11:57:28 -0800


On Mar 5, 2010, at 3:56 AM, Selçuk Cevher wrote:

As far as I know, in general, pcap_loop() function of libpcap library is
preferred over pcap_next_ex() function in both live and offline capture.

Is it related to some kind of fact that pcap_loop() is more
robust/reliable/efficient ?

It might be more efficient, but it's also older - at least some applications use it because pcap_next_ex() didn't 
*exist* when they were written (and pcap_next() is limited in its capabilities; that's why pcap_next_ex() was written).-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: