git: f4c42b183d54 - stable/13 - route: allow RTM_CHANGE notifications in rt_routemsg().
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 13 Jan 2023 21:25:59 UTC
The branch stable/13 has been updated by melifaro:
URL: https://cgit.FreeBSD.org/src/commit/?id=f4c42b183d54944da82785a6373233619659122f
commit f4c42b183d54944da82785a6373233619659122f
Author: Alexander V. Chernikov <melifaro@FreeBSD.org>
AuthorDate: 2022-12-15 10:39:06 +0000
Commit: Alexander V. Chernikov <melifaro@FreeBSD.org>
CommitDate: 2023-01-13 21:24:12 +0000
route: allow RTM_CHANGE notifications in rt_routemsg().
MFC after: 2 weeks
(cherry picked from commit 3636a967f310e3380ff7d8d63728ca9e7a5b6ce2)
---
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 b74256207e4a..79735699827a 100644
--- a/sys/net/route.c
+++ b/sys/net/route.c
@@ -779,7 +779,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),