From: florian Date: Sat, 23 Jul 2022 09:00:10 +0000 (+0000) Subject: Delete addresses when interface is no longer autoconf. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=bf180fcc3d7ff0508ba5f2864d64d1ee65b7cfbc;p=openbsd Delete addresses when interface is no longer autoconf. This brings it in line with dhcpleased(8) as well as what we do for the default route and DNS proposals. I missed this when I rewrote the state machine to match dhcpleased(8). --- diff --git a/sbin/slaacd/engine.c b/sbin/slaacd/engine.c index f12a8db5385..1412d4d2405 100644 --- a/sbin/slaacd/engine.c +++ b/sbin/slaacd/engine.c @@ -1,4 +1,4 @@ -/* $OpenBSD: engine.c,v 1.81 2022/07/12 16:54:59 florian Exp $ */ +/* $OpenBSD: engine.c,v 1.82 2022/07/23 09:00:10 florian Exp $ */ /* * Copyright (c) 2017 Florian Obser @@ -2207,6 +2207,8 @@ free_address_proposal(struct address_proposal *addr_proposal) LIST_REMOVE(addr_proposal, entries); evtimer_del(&addr_proposal->timer); switch (addr_proposal->state) { + case PROPOSAL_CONFIGURED: + case PROPOSAL_NEARLY_EXPIRED: case PROPOSAL_STALE: withdraw_addr(addr_proposal); break;