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