MCPcopy Create free account
hub / github.com/F-Stack/f-stack / open_single_rx_pcap

Function open_single_rx_pcap

dpdk/drivers/net/pcap/pcap_ethdev.c:576–587  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

574}
575
576static int
577open_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
589static uint64_t
590count_packets_in_pcap(pcap_t **pcap, struct pcap_rx_queue *pcap_q)

Callers 3

count_packets_in_pcapFunction · 0.85
eth_dev_startFunction · 0.85
open_rx_pcapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected