libicmp/src/error/should_retry.c
2026-01-25 15:12:53 +01:00

13 lines
264 B
C

#include "icmp.h"
#include "internal/icmp_internal.h"
int
icmp_should_retry(const icmp_handle_t *h)
{
const struct icmp_handle *handle = (const struct icmp_handle *)h;
if (NULL == handle)
return 0;
return (ICMP_ERR_EAGAIN == handle->last_error) ? 1 : 0;
}