src/dpdk/drivers/net/pcap/rte_eth_pcap.c
static int
open_tx_pcap(const char *key, const char *value, void *extra_args)
{
	const char *pcap_filename = value;
	struct pmd_devargs *dumpers = extra_args;
	pcap_dumper_t *dumper;

	if (open_single_tx_pcap(pcap_filename, &dumper) < 0)
		return -1;

	if (add_queue(dumpers, pcap_filename, key, NULL, dumper) < 0) {
		pcap_dump_close(dumper);
		return -1;
	}

	return 0;
}
/*
 * Opens a pcap file for writing and stores a reference to it
 * for use it later on.
 */
Opens a pcap file for writing and stores a reference to it
for use it later on.
Opens a pcap file for writing and stores a reference to it for use it later on .
static int
open_tx_pcap(const char *key, const char *value, void *extra_args)
{
	const char *pcap_filename = value;
	struct pmd_devargs *dumpers = extra_args;
	pcap_dumper_t *dumper;
	if (open_single_tx_pcap(pcap_filename, &dumper) < 0)
		return -1;
	if (add_queue(dumpers, pcap_filename, key, NULL, dumper) < 0) {
		pcap_dump_close(dumper);
		return -1;
	}
	return 0;
}
static int open_tx_pcap ( const char * key , const char * value , void * extra_args ) { const char * pcap_filename = value ; struct pmd_devargs * dumpers = extra_args ; pcap_dumper_t * dumper ; if ( open_single_tx_pcap ( pcap_filename , & dumper ) < 0 ) return -1 ; if ( add_queue ( dumpers , pcap_filename , key , NULL , dumper ) < 0 ) { pcap_dump_close ( dumper ) ; return -1 ; } return 0 ; }
Opens a pcap file for writing and stores a reference to it
 for use it later on.
Opens a pcap file for writing and stores a reference to it for use it later on .