route: allow RTM_CHANGE notifications in rt_routemsg().

MFC after:	2 weeks
This commit is contained in:
Alexander V. Chernikov 2022-12-15 10:39:06 +00:00
parent e8d7ae918a
commit 3636a967f3

View File

@ -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),