| arp_lookup_linux.c | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 7 | 14 | 50.0 |
| line | true | false | branch |
|---|---|---|---|
| 58 | 1 | 0 | if ( !strlen(device) || (strlen(device) >= 16) ) |
| 0 | 1 | if ( !strlen(device) || (strlen(device) >= 16) ) | |
| 62 | 0 | 1 | else if (hw_addr == NULL) |
| 66 | 1 | 0 | else if ( !strlen(ip) || (inet_aton(ip, &ipaddr) == 0) ) |
| 0 | 1 | else if ( !strlen(ip) || (inet_aton(ip, &ipaddr) == 0) ) | |
| 70 | 0 | 1 | else if ((s = socket(AF_INET, SOCK_DGRAM, 0)) == -1) |
| 87 | 1 | 0 | if (ioctl(s, SIOCGARP, &areq) == -1) |