From nobody Thu Dec 15 10:41:15 2022 X-Original-To: dev-commits-src-main@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 4NXpgH6CBfz4jnnj; Thu, 15 Dec 2022 10:41:15 +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 4NXpgH4ph9z4JsP; Thu, 15 Dec 2022 10:41:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671100875; 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=V5UyZkVw/io3qWSLF0KwVmsu8qkGSDZhof6L5iYO5dY=; b=qTF0UbuU84/m2eelZSrxjcQMiJEZHizaRcrXjtMYkk6b/5caUOibeuHbAQGFHQTwD0jmni H4ZieXq1T5UllxSItDRWNsIEdt6NJgbHjNsSWRMIwnqxmCFpCwj+b9h6DZtZR13pPM6way ZSY6sSacZtecqca5addK37kEcetornacutUv6MwMZzaTA1wUxz4zeozqEItRKVqj8BJ3xs iqYMvpaCbMS+6X9mKAk75QM0m2eJldgcXKVPeItWaxWERp0HtWSmduMyJqA1+XKELl9XDi RNjR3ZzI+bOYOnm6k3FLSLOhrpMaZrhNellcsfAsu6oRNgr9dYHHqQz/aeU3xQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671100875; 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=V5UyZkVw/io3qWSLF0KwVmsu8qkGSDZhof6L5iYO5dY=; b=Nb7rZEdkwXIxdKkpRcGwuEiymbbHOiNAlIL0LhQ376HbczjDBqWRk2QjQy1zJjQ6i1YWKR 8r6BkHYp1EUOunfc+lzGbhokIX44snEVmi5iH5SXGsQ1+LXdgeNnPzF2aPgIIBtXwD8SKn sV+gkC96D8LVow3hdgG79LXFWNjmqL1wPYub7ZQE5VwRclq/6EGc7ai27IGDH8b3MPVGfn EYinzsYh71wXF0J71v2XxF0mdzcVKnDSfOtiYk9jpU4RNn3if28buoIXL8ME6cJNC0yC1v AQPQBGrC9wJZ82tx5yhuJHA82ce6kUmuHeg5t7NFixg/0cArq3CeupZ10b7jpw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1671100875; a=rsa-sha256; cv=none; b=Rcol7l0I0E7JKDpS5km44+3urVWCF+Vn83/BGLTKkudIHGaXJT7457NSotuBXbFDsO4cbc ohBIhukKF3c87evUAgm2+zd3iz69I06JOXsN5WN5DorTFXsHbDHqK/BdOsWAhOE1u2X9M6 3SzQ+uBDCPcnMTiN6kZgoKoBw6KggjntYo/xin8Do1NtMVp+x7wGYU6b5mGo4LDaBcqoen eosboDNNa5PFj/ixEIKnkwNqT9uai3ihi3Hhy6ufYEPO8I/O3hPhb0VMtWUyQagmHv8WAn 2NPV9Bu3y0qSx+jlTEgCKsYgt4ytZutasKXipOh9XcnjQUrFF2fWJhoOFMUfcw== 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 4NXpgH3tdgzVww; Thu, 15 Dec 2022 10:41:15 +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 2BFAfFnW020948; Thu, 15 Dec 2022 10:41:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2BFAfF8L020947; Thu, 15 Dec 2022 10:41:15 GMT (envelope-from git) Date: Thu, 15 Dec 2022 10:41:15 GMT Message-Id: <202212151041.2BFAfF8L020947@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: 3636a967f310 - main - route: allow RTM_CHANGE notifications in rt_routemsg(). List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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: 3636a967f310e3380ff7d8d63728ca9e7a5b6ce2 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by melifaro: URL: https://cgit.FreeBSD.org/src/commit/?id=3636a967f310e3380ff7d8d63728ca9e7a5b6ce2 commit 3636a967f310e3380ff7d8d63728ca9e7a5b6ce2 Author: Alexander V. Chernikov AuthorDate: 2022-12-15 10:39:06 +0000 Commit: Alexander V. Chernikov CommitDate: 2022-12-15 10:40:35 +0000 route: allow RTM_CHANGE notifications in rt_routemsg(). MFC after: 2 weeks --- sys/net/route.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net/route.c b/sys/net/route.c index b79e8e6e2a66..0d6227a515f7 100644 --- a/sys/net/route.c +++ b/sys/net/route.c @@ -661,7 +661,7 @@ rt_routemsg(int cmd, struct rtentry *rt, struct nhop_object *nh, int fibnum) { - KASSERT(cmd == RTM_ADD || cmd == RTM_DELETE, + KASSERT(cmd == RTM_ADD || cmd == RTM_DELETE || cmd == RTM_CHANGE, ("unexpected cmd %d", cmd)); KASSERT(fibnum == RT_ALL_FIBS || (fibnum >= 0 && fibnum < rt_numfibs),