Compare commits
4 commits
71ca9abc2e
...
ac9ca93d9f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ac9ca93d9f | ||
|
|
812e3a0ed5 | ||
|
|
70988a801f | ||
|
|
23c5256c76 |
1 changed files with 3 additions and 6 deletions
|
|
@ -17,10 +17,7 @@ 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);
|
||||||
|
|
||||||
switch (ret)
|
if (0 == ret)
|
||||||
{
|
icmp_clear_error(h);
|
||||||
case -1: return -1;
|
return ret;
|
||||||
case 1: return 1;
|
|
||||||
default: icmp_clear_error(h); return 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue