The code looks wrong; this '||' should almost certainly be an '&&', otherwise
the test is always true.
/* Check the interface name and issue various pedantic warnings */
if((!strcmp(ifnode->ifname, "eth0")) || (!strcmp(ifnode->ifname, "wlan0")))
fprintf(stderr, "Warning: Interface name is `%s' at line %d, can't be mapped
reliably.\n", ifnode->ifname, linenum);
The code looks wrong; this '||' should almost certainly be an '&&', otherwise
the test is always true.
/* Check the interface name and issue various pedantic warnings */ strcmp( ifnode- >ifname, "eth0")) || (!strcmp( ifnode- >ifname, "wlan0")))
"Warning: Interface name is `%s' at line %d, can't be mapped
ifnode- >ifname, linenum);
if((!
fprintf(stderr,
reliably.\n",