src/dpdk/drivers/net/pcap/rte_eth_pcap.c
static int
open_rx_pcap(const char *key, const char *value, void *extra_args)
{
	const char *pcap_filename = value;
	struct pmd_devargs *rx = extra_args;
	pcap_t *pcap = NULL;

	if (open_single_rx_pcap(pcap_filename, &pcap) < 0)
		return -1;

	if (add_queue(rx, pcap_filename, key, pcap, NULL) < 0) {
		pcap_close(pcap);
		return -1;
	}

	return 0;
}
/*
 * Function handler that opens the pcap file for reading a stores a
 * reference of it for use it later on.
 */
Function handler that opens the pcap file for reading a stores a
reference of it for use it later on.
Function handler that opens the pcap file for reading a stores a reference of it for use it later on .
static int
open_rx_pcap(const char *key, const char *value, void *extra_args)
{
	const char *pcap_filename = value;
	struct pmd_devargs *rx = extra_args;
	pcap_t *pcap = NULL;
	if (open_single_rx_pcap(pcap_filename, &pcap) < 0)
		return -1;
	if (add_queue(rx, pcap_filename, key, pcap, NULL) < 0) {
		pcap_close(pcap);
		return -1;
	}
	return 0;
}
static int open_rx_pcap ( const char * key , const char * value , void * extra_args ) { const char * pcap_filename = value ; struct pmd_devargs * rx = extra_args ; pcap_t * pcap = NULL ; if ( open_single_rx_pcap ( pcap_filename , & pcap ) < 0 ) return -1 ; if ( add_queue ( rx , pcap_filename , key , pcap , NULL ) < 0 ) { pcap_close ( pcap ) ; return -1 ; } return 0 ; }
Function handler that opens the pcap file for reading a stores a
 reference of it for use it later on.
Function handler that opens the pcap file for reading a stores a reference of it for use it later on .