MCPcopy Index your code
hub / github.com/F-Stack/f-stack / dump_interfaces

Function dump_interfaces

dpdk/app/dumpcap/main.c:271–283  ·  view source on GitHub ↗

Display list of possible interfaces that can be used. */

Source from the content-addressed store, hash-verified

269
270/* Display list of possible interfaces that can be used. */
271static void dump_interfaces(void)
272{
273 char name[RTE_ETH_NAME_MAX_LEN];
274 uint16_t p;
275
276 RTE_ETH_FOREACH_DEV(p) {
277 if (rte_eth_dev_get_name_by_port(p, name) < 0)
278 continue;
279 printf("%u. %s\n", p, name);
280 }
281
282 exit(0);
283}
284
285static void compile_filters(void)
286{

Callers 1

mainFunction · 0.85

Calls 2

printfFunction · 0.50

Tested by

no test coverage detected