send_packet_linux.c | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 4 | 8 | 50.0 |
line | true | false | branch |
---|---|---|---|
35 | 0 | 1 | if(strlen(dev) == 0) |
41 | 0 | 1 | if(packetsize == 0) |
48 | 0 | 1 | if( ( sock = socket(AF_PACKET, SOCK_PACKET, htons(ETH_P_ALL))) < 0 ) |
57 | 1 | 0 | if( (sendto(sock, packet, packetsize, 0, &addr, sizeof(struct sockaddr))) < 0 ) |