From nobody Mon Sep 05 13:01:34 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MLpYp5Wx7z4cMC8; Mon, 5 Sep 2022 13:01:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MLpYp52qyz3h6V; Mon, 5 Sep 2022 13:01:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662382894; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bYtlcTRhBFmlePMZTLEVWxBFtrUX+7qGxd4iUa82uWw=; b=w4rz9pYBCXT9v4HLACeZBoVDz0AQ2Q/UrGnyx35B802rRRZ65YeoaIamEKV7okEmI2nJCp CXmgTBqBpCfrZ9nbpRyfpq5ChgrYPCbdZauUX2hnKQi7DX9LnpDgqwwBRx7GKSg6NQKkBV OFwf/P0zDKvJfzhqKUd56nUuXRKh82FrvFucYpvoIrR+vQlpQ+ypOFsiFAhGS6L4h1/QXj I9YwjJ+Mgu4rRqd4ZWJBAXfecl+Xb1pFKYoOWpsCObk5K9vJpdDyagqfCXcFQPgtZP3kY0 h9qbuBQB33XX2KyHdDs3aWNDOjiUgbe2rIGFtkXFE3C+8bpeSVV7Q/FyX7r24w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MLpYp45mPzqWf; Mon, 5 Sep 2022 13:01:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 285D1YJq063802; Mon, 5 Sep 2022 13:01:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 285D1Yr2063801; Mon, 5 Sep 2022 13:01:34 GMT (envelope-from git) Date: Mon, 5 Sep 2022 13:01:34 GMT Message-Id: <202209051301.285D1Yr2063801@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Alexander V. Chernikov" Subject: git: db98b4205093 - main - netinet6: call lle_event eventhandler after updating state List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: melifaro X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: db98b4205093a6ee201ce0b8d83c77d5b730d7cb Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662382894; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bYtlcTRhBFmlePMZTLEVWxBFtrUX+7qGxd4iUa82uWw=; b=hmkfqLsuefwAnLlef4dcWNZtg/Vsccw12Aedrmfcncjxz/iOMWq/6ObcBdngJMmghpnZCj haJS9hjlKVuudM8m9NDosMLgYvrFUO4UT2uxUbaDAWnPtUwC73MMlKYXCu9eNTjc2ujX42 Kna2dlzOvUSHaqrXz8Q08YDIH2B1QBseWP2l4+ROeg3pDdMIf5zTvSUB2mO3autY8aK+G5 8jFYGrM3SDZQjM7tryzSgovXwmOQhyzeJKviOwPOQeP/7VPvwrJL5g1NJFqz02WoYiMZ7n Ee1phuipUhWNDz4PSsK6qr/j9FOoLFYqWYV8qN4jhe/ky5eXJVzD4qHgFUkmSw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1662382894; a=rsa-sha256; cv=none; b=h309EB452F5wNXbWd8Tgv/n3nzdHJ+RxPspen6OZAwIBzpXQPq4Rrsm9npPzsJ5KlatKbu +VSjz0ruoEQIKTXD3q2KGjhS5QeNsRJG3cBB5N9zwfcOP+mqHfHhZENT2CTnE+nwc+gCpF Tc33sO7O/OtCrxYVJdv6CsNM6xrTgDL1XoA9n8zS1AMuQa5blNXR1G1IaRN/9HQEVXwtGO +m5kVl7BZzXN8jIxLzZLp47Tg2wzfWUI5lzVkYQ255iksD2H0kAmKZyjXi9bigTLNyUdSH yMWBe35q9J3ZMHCLbm+JNvBYkIGNZDLjFyjnuEhu1GXeKNEMpxaYY6TRirfEsw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by melifaro: URL: https://cgit.FreeBSD.org/src/commit/?id=db98b4205093a6ee201ce0b8d83c77d5b730d7cb commit db98b4205093a6ee201ce0b8d83c77d5b730d7cb Author: Alexander V. Chernikov AuthorDate: 2022-09-05 12:57:20 +0000 Commit: Alexander V. Chernikov CommitDate: 2022-09-05 13:01:27 +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 --- 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 7877a7bc91b1..f96bf8e58dc3 100644 --- a/sys/netinet6/nd6_nbr.c +++ b/sys/netinet6/nd6_nbr.c @@ -786,11 +786,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