#ifndef lint
static const char rcsid[] _U_ =
- "@(#) $Header: /tcpdump/master/libpcap/pcap-linux.c,v 1.129.2.5 2008-01-24 20:21:34 guy Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/libpcap/pcap-linux.c,v 1.129.2.6 2008-02-02 20:57:04 guy Exp $ (LBL)";
#endif
/*
} while (ret < 0);
}
- /* negative values of max_packets are used to require all
- * packets available in the ring */
- while ((pkts < max_packets) || (max_packets <0)) {
+ /* non-positive values of max_packets are used to require all
+ * packets currently available in the ring */
+ while ((pkts < max_packets) || (max_packets <= 0)) {
int run_bpf;
struct sockaddr_ll *sll;
struct pcap_pkthdr pcaphdr;