git: 47d08873b001 - stable/13 - netinet6: call lle_event eventhandler after updating state
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 13 Jan 2023 21:25:54 UTC
The branch stable/13 has been updated by melifaro: URL: https://cgit.FreeBSD.org/src/commit/?id=47d08873b001b5b643d2c55326e30445510fb5f7 commit 47d08873b001b5b643d2c55326e30445510fb5f7 Author: Alexander V. Chernikov <melifaro@FreeBSD.org> AuthorDate: 2022-09-05 12:57:20 +0000 Commit: Alexander V. Chernikov <melifaro@FreeBSD.org> CommitDate: 2023-01-13 21:24:12 +0000 netinet6: call lle_event eventhandler after updating state Fix nd6_na_input() eventhandler call: run eventhandler after lle state transition. Old behaviour (as seen by event handler): * fe80::5054:ff:fe8c:63e9 dev vtnet0 lladdr 52:54:00:8c:63:e9 INCOMPLETE New behaviour: * fe80::5054:ff:fe8c:63e9 dev vtnet0 lladdr 52:54:00:8c:63:e9 REACHABLE MFC after: 2 weeks (cherry picked from commit db98b4205093a6ee201ce0b8d83c77d5b730d7cb) --- sys/netinet6/nd6_nbr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet6/nd6_nbr.c b/sys/netinet6/nd6_nbr.c index 3a56964f8eb3..d5895ef5d02d 100644 --- a/sys/netinet6/nd6_nbr.c +++ b/sys/netinet6/nd6_nbr.c @@ -785,11 +785,11 @@ nd6_na_input(struct mbuf *m, int off, int icmp6len) goto freeit; flush_holdchain = true; - EVENTHANDLER_INVOKE(lle_event, ln, LLENTRY_RESOLVED); if (is_solicited) nd6_llinfo_setstate(ln, ND6_LLINFO_REACHABLE); else nd6_llinfo_setstate(ln, ND6_LLINFO_STALE); + EVENTHANDLER_INVOKE(lle_event, ln, LLENTRY_RESOLVED); if ((ln->ln_router = is_router) != 0) { /* * This means a router's state has changed from