git: 600bf006d3f1 - main - carp: delete interface routes on link loss.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 08 Aug 2023 10:26:57 UTC
The branch main has been updated by ae: URL: https://cgit.FreeBSD.org/src/commit/?id=600bf006d3f15f170b9209d5d3a37437bfe0850e commit 600bf006d3f15f170b9209d5d3a37437bfe0850e Author: Andrey V. Elsukov <ae@FreeBSD.org> AuthorDate: 2023-08-02 07:40:34 +0000 Commit: Andrey V. Elsukov <ae@FreeBSD.org> CommitDate: 2023-08-08 10:22:10 +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 --- 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 935e7eaf92f5..d1a41e10115f 100644 --- a/sys/netinet/ip_carp.c +++ b/sys/netinet/ip_carp.c @@ -2159,6 +2159,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;