mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-20 02:38:32 +00:00
Diverge error handling between *BSD and Linux.
This commit is contained in:
@@ -93,10 +93,13 @@ int send_from(int fd, int nowild, char *packet, size_t len,
|
|||||||
|
|
||||||
while (retry_send(sendmsg(fd, &msg, 0)));
|
while (retry_send(sendmsg(fd, &msg, 0)));
|
||||||
|
|
||||||
/* If interface is still in DAD, EINVAL results - ignore that. */
|
if (errno != 0)
|
||||||
if (errno != 0 && errno != EINVAL)
|
|
||||||
{
|
{
|
||||||
my_syslog(LOG_ERR, _("failed to send packet: %s"), strerror(errno));
|
#ifdef HAVE_LINUX_NETWORK
|
||||||
|
/* If interface is still in DAD, EINVAL results - ignore that. */
|
||||||
|
if (errno != EINVAL)
|
||||||
|
my_syslog(LOG_ERR, _("failed to send packet: %s"), strerror(errno));
|
||||||
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user