mirror of
https://github.com/openbsd/src.git
synced 2026-04-23 13:44:10 +00:00
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.
This commit is contained in:
@@ -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 <florian@openbsd.org>
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user