Silence useless "cannot send packet" warnings.

This commit is contained in:
Simon Kelley committed 2026-11-25 20:33:23 +00:00
1 parent 295d546705
commit e5731e9928
1 file changed
+4 -2
+4 -2
View File
@@ -98,8 +98,10 @@ int send_from(int fd, int nowild, char *packet, size_t len,
if (errno != 0) if (errno != 0)
{ {
#ifdef HAVE_LINUX_NETWORK #ifdef HAVE_LINUX_NETWORK
/* If interface is still in DAD, EINVAL results - ignore that. */ /* If interface is still in DAD, EINVAL results - ignore that.
if (errno != EINVAL) 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)); my_syslog(LOG_ERR, _("failed to send packet: %s"), strerror(errno));
#endif #endif
return 0; return 0;