Branch Coverage

get_mac_linux.c
Criterion Covered Total %
branch 4 8 50.0


line true false branch
36 1 0 if ( !strlen(mac) || !strlen(dev) )
0 1 if ( !strlen(mac) || !strlen(dev) )
49 0 1 if((sock = socket(AF_INET, SOCK_DGRAM, 0)) < 0)
57 1 0 if((ioctl(sock, SIOCGIFHWADDR, &iface)) < 0)