Date: Thu, 15 Dec 2022 10:41:15 GMT From: "Alexander V. Chernikov" <melifaro@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 3636a967f310 - main - route: allow RTM_CHANGE notifications in rt_routemsg(). Message-ID: <202212151041.2BFAfF8L020947@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by melifaro: URL: https://cgit.FreeBSD.org/src/commit/?id=3636a967f310e3380ff7d8d63728ca9e7a5b6ce2 commit 3636a967f310e3380ff7d8d63728ca9e7a5b6ce2 Author: Alexander V. Chernikov <melifaro@FreeBSD.org> AuthorDate: 2022-12-15 10:39:06 +0000 Commit: Alexander V. Chernikov <melifaro@FreeBSD.org> 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),
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202212151041.2BFAfF8L020947>