Lines Matching refs:max_packets
1604 * Read at most max_packets from the capture stream and call the callback
1609 pcap_read_linux(pcap_t *handle, int max_packets, pcap_handler callback, u_char *user)
4779 pcap_read_linux_mmap_v1(pcap_t *handle, int max_packets, pcap_handler callback,
4800 /* non-positive values of max_packets are used to require all
4802 while ((pkts < max_packets) || PACKET_COUNT_IS_UNLIMITED(max_packets)) {
4863 pcap_read_linux_mmap_v1_64(pcap_t *handle, int max_packets, pcap_handler callback,
4884 /* non-positive values of max_packets are used to require all
4886 while ((pkts < max_packets) || PACKET_COUNT_IS_UNLIMITED(max_packets)) {
4948 pcap_read_linux_mmap_v2(pcap_t *handle, int max_packets, pcap_handler callback,
4969 /* non-positive values of max_packets are used to require all
4971 while ((pkts < max_packets) || PACKET_COUNT_IS_UNLIMITED(max_packets)) {
5038 pcap_read_linux_mmap_v3(pcap_t *handle, int max_packets, pcap_handler callback,
5070 /* non-positive values of max_packets are used to require all
5072 while ((pkts < max_packets) || PACKET_COUNT_IS_UNLIMITED(max_packets)) {
5085 if (!PACKET_COUNT_IS_UNLIMITED(max_packets) &&
5086 packets_to_read > (max_packets - pkts)) {
5093 packets_to_read = max_packets - pkts;