Compare commits
4 commits
ac9ca93d9f
...
71ca9abc2e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
71ca9abc2e | ||
|
|
e6693c97cc | ||
|
|
5713e343aa | ||
|
|
a9bdaf33f2 |
1 changed files with 6 additions and 3 deletions
|
|
@ -17,7 +17,10 @@ send_to_destination(struct icmp_handle *h, const void *packet, size_t len,
|
||||||
|
|
||||||
ret = send_packet(h, packet, len, &addr);
|
ret = send_packet(h, packet, len, &addr);
|
||||||
|
|
||||||
if (0 == ret)
|
switch (ret)
|
||||||
icmp_clear_error(h);
|
{
|
||||||
return ret;
|
case -1: return -1;
|
||||||
|
case 1: return 1;
|
||||||
|
default: icmp_clear_error(h); return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue