mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-11-28 21:08:35 +00:00
Silence useless "cannot send packet" warnings.
This commit is contained in:
1 file changed
+4
-2
+4
-2
@@ -98,8 +98,10 @@ int send_from(int fd, int nowild, char *packet, size_t len,
|
||||
if (errno != 0)
|
||||
{
|
||||
#ifdef HAVE_LINUX_NETWORK
|
||||
/* If interface is still in DAD, EINVAL results - ignore that. */
|
||||
if (errno != EINVAL)
|
||||
/* If interface is still in DAD, EINVAL results - ignore that.
|
||||
Sending an IPv6 packet via an interface with only deprecated address(es)
|
||||
results in EACCESS, ignore that too. */
|
||||
if (errno != EINVAL && errno != EACCES)
|
||||
my_syslog(LOG_ERR, _("failed to send packet: %s"), strerror(errno));
|
||||
#endif
|
||||
return 0;
|
||||
|
||||
Reference in new issue
Block a user