git: de114db0fe90 - stable/12 - carp: delete interface routes on link loss.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 01 Sep 2023 09:07:15 UTC
The branch stable/12 has been updated by ae: URL: https://cgit.FreeBSD.org/src/commit/?id=de114db0fe90b45cd1a49ce3dcdc8c68051565ba commit de114db0fe90b45cd1a49ce3dcdc8c68051565ba 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 09:02:23 +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 acf819df694a..544e9e640c2c 100644 --- a/sys/netinet/ip_carp.c +++ b/sys/netinet/ip_carp.c @@ -2074,6 +2074,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;