git: 672b3df113b7 - stable/13 - carp: delete interface routes on link loss.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 01 Sep 2023 08:59:05 UTC
The branch stable/13 has been updated by ae: URL: https://cgit.FreeBSD.org/src/commit/?id=672b3df113b7df88eb99d7d9922c4229a82ceee7 commit 672b3df113b7df88eb99d7d9922c4229a82ceee7 Author: Andrey V. Elsukov <ae@FreeBSD.org> AuthorDate: 2023-08-02 07:40:34 +0000 Commit: Andrey V. Elsukov <ae@FreeBSD.org> CommitDate: 2023-09-01 08:58:06 +0000 carp: delete interface routes on link loss. Obtained from: Yandex LLC MFC after: 10 days Sponsored by: Yandex LLC Differential Revision: https://reviews.freebsd.org/D41290 (cherry picked from commit 600bf006d3f15f170b9209d5d3a37437bfe0850e) --- sys/netinet/ip_carp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c index 7ef198f0b42f..dc3914c6f77a 100644 --- a/sys/netinet/ip_carp.c +++ b/sys/netinet/ip_carp.c @@ -2095,6 +2095,7 @@ carp_sc_state(struct carp_softc *sc) #endif carp_set_state(sc, INIT, "hardware interface down"); carp_setrun(sc, 0); + carp_delroute(sc); if (!sc->sc_suppress) carp_demote_adj(V_carp_ifdown_adj, "interface down"); sc->sc_suppress = 1;