Compare commits

..

4 commits

Author SHA1 Message Date
lohhiiccc
71ca9abc2e feat: set TOS 2026-04-23 13:53:35 +02:00
lohhiiccc
e6693c97cc chore: update LICENSE 2026-04-23 12:59:58 +02:00
lohhiiccc
5713e343aa feat: icmp_create_block() 2026-04-22 23:58:41 +02:00
lohhiiccc
a9bdaf33f2 feat: add ENOBUFS (no buff space left) to EAGAIN error behavior 2026-04-22 13:22:33 +02:00

View file

@ -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;
}
} }