rcode = sendto(thread->t->fd, &icmp, sizeof(icmp), 0, (struct sockaddr *) &dst, salen);
if (rcode < 0) {
- REDEBUG("Failed sending ICMP request: %s", fr_syserror(errno));
+ REDEBUG("Failed sending ICMP request to %pV: %s", echo->ip, fr_syserror(errno));
(void) rbtree_deletebydata(thread->t->tree, echo);
talloc_free(echo);
return XLAT_ACTION_FAIL;
return;
}
-#if 0
-#endif
-
/*
* If we sent an ICMP echo request for this IP, mark the
* underlying request as resumable.
* Only bind if we have a src and interface.
*/
if (src && inst->interface && (fr_socket_bind(fd, src, NULL, inst->interface) < 0)) {
- fr_strerror_printf("Failed binding to socket: %s", fr_strerror());
close(fd);
return -1;
}