| 574 | } |
| 575 | |
| 576 | static int |
| 577 | open_single_rx_pcap(const char *pcap_filename, pcap_t **pcap) |
| 578 | { |
| 579 | *pcap = pcap_open_offline(pcap_filename, errbuf); |
| 580 | if (*pcap == NULL) { |
| 581 | PMD_LOG(ERR, "Couldn't open %s: %s", pcap_filename, |
| 582 | errbuf); |
| 583 | return -1; |
| 584 | } |
| 585 | |
| 586 | return 0; |
| 587 | } |
| 588 | |
| 589 | static uint64_t |
| 590 | count_packets_in_pcap(pcap_t **pcap, struct pcap_rx_queue *pcap_q) |
no outgoing calls
no test coverage detected