Compare commits

..

4 commits

Author SHA1 Message Date
lohhiiccc
ac9ca93d9f feat: set TOS 2026-04-23 16:38:12 +02:00
lohhiiccc
812e3a0ed5 chore: update LICENSE 2026-04-23 16:38:12 +02:00
lohhiiccc
70988a801f feat: icmp_create_block() 2026-04-23 16:38:12 +02:00
lohhiiccc
23c5256c76 feat: add ENOBUFS (no buff space left) to EAGAIN error behavior 2026-04-23 16:38:05 +02:00

View file

@ -17,10 +17,7 @@ send_to_destination(struct icmp_handle *h, const void *packet, size_t len,
ret = send_packet(h, packet, len, &addr);
switch (ret)
{
case -1: return -1;
case 1: return 1;
default: icmp_clear_error(h); return 0;
}
if (0 == ret)
icmp_clear_error(h);
return ret;
}