Lines Matching defs:max_packets
1709 * Read at most max_packets from the capture stream and call the callback
1714 pcap_read_linux(pcap_t *handle, int max_packets _U_, pcap_handler callback, u_char *user)
5305 pcap_read_linux_mmap_v1(pcap_t *handle, int max_packets, pcap_handler callback,
5326 /* non-positive values of max_packets are used to require all
5328 while ((pkts < max_packets) || PACKET_COUNT_IS_UNLIMITED(max_packets)) {
5389 pcap_read_linux_mmap_v1_64(pcap_t *handle, int max_packets, pcap_handler callback,
5410 /* non-positive values of max_packets are used to require all
5412 while ((pkts < max_packets) || PACKET_COUNT_IS_UNLIMITED(max_packets)) {
5474 pcap_read_linux_mmap_v2(pcap_t *handle, int max_packets, pcap_handler callback,
5495 /* non-positive values of max_packets are used to require all
5497 while ((pkts < max_packets) || PACKET_COUNT_IS_UNLIMITED(max_packets)) {
5560 pcap_read_linux_mmap_v3(pcap_t *handle, int max_packets, pcap_handler callback,
5592 /* non-positive values of max_packets are used to require all
5594 while ((pkts < max_packets) || PACKET_COUNT_IS_UNLIMITED(max_packets)) {
5607 if (!PACKET_COUNT_IS_UNLIMITED(max_packets) &&
5608 packets_to_read > (max_packets - pkts)) {
5615 packets_to_read = max_packets - pkts;