From f8ec15daa0392fb90f005b6c2610eed42601fa12 Mon Sep 17 00:00:00 2001 From: florian Date: Wed, 15 Oct 2025 11:25:45 +0000 Subject: [PATCH] slaacd(8) does not (yet?) track if routes it added are deleted behind its back. It simply adds routes and lets the kernel sort duplicates out. This however leads to "failed to send route message: File exists" messages in /var/log/daemon which are confusing. Since this is expected, do not log it as an error. dhcpleased(8) has been doing this for a long time. --- sbin/slaacd/slaacd.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sbin/slaacd/slaacd.c b/sbin/slaacd/slaacd.c index a88e9fd1eb4..4dc66c43a63 100644 --- a/sbin/slaacd/slaacd.c +++ b/sbin/slaacd/slaacd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: slaacd.c,v 1.81 2025/08/06 16:50:53 florian Exp $ */ +/* $OpenBSD: slaacd.c,v 1.82 2025/10/15 11:25:45 florian Exp $ */ /* * Copyright (c) 2017 Florian Obser @@ -805,8 +805,10 @@ configure_gateway(struct imsg_configure_dfr *dfr, uint8_t rtm_type) rtm.rtm_msglen += padlen; } - if (writev(routesock, iov, iovcnt) == -1) - log_warn("failed to send route message"); + if (writev(routesock, iov, iovcnt) == -1) { + if (errno != EEXIST) + log_warn("failed to send route message"); + } } void