From e5731e99287a5cd792b2fa644d495806a80ea135 Mon Sep 17 00:00:00 2001 From: Simon Kelley Date: Wed, 25 Nov 2026 20:33:23 +0000 Subject: [PATCH] Silence useless "cannot send packet" warnings. --- src/forward.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/forward.c b/src/forward.c index dae9a4f..f9deffd 100644 --- a/src/forward.c +++ b/src/forward.c @@ -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;