Code cleanup for ping
This commit is contained in:
parent
c4ded8d10b
commit
f4dbd6a0b2
@ -222,6 +222,7 @@ int ping_send(struct in_addr addr)
|
||||
|
||||
sentlen = sendto(ping_isocket, &icmpd, ICMP4_ECHO_LEN, 0, (struct sockaddr *)&to, sizeof(to));
|
||||
if (sentlen != ICMP4_ECHO_LEN) {
|
||||
if (icmp_errs < ICMP_MAX_ERRS)
|
||||
tasklog('+', "ping: sent %d octets, ret %d", ICMP4_ECHO_LEN, sentlen);
|
||||
return -2;
|
||||
}
|
||||
|
Reference in New Issue
Block a user