5 #ifndef __CNET_IFSHOW_H
6 #define __CNET_IFSHOW_H
13 #include <sys/queue.h>
26 cnet_print_flags(uint32_t flags)
28 const char *ifflags[] = {
"up",
"broadcast",
"debug",
"loopback",
"p2p",
29 "notrailers",
"running",
"noarp",
"promisc",
"allmulti",
30 "master",
"slave",
"multicast",
"portsel",
"automedia",
31 "dynamic",
"lowerup"};
34 for (
int i = 0; i < cne_countof(ifflags); i++)
35 if (flags & (1UL << i))
CNDP_API int cne_printf(const char *fmt,...)
CNDP_API int cnet_ifshow(char *ifname)
Show the configuration information of a given interface or all if not given.