Remove additional fib checks from rtalloc1_fib.
It looks like current consumers are either unaware of MRT (and uses RT_DEFAULT_FIB implicitly) or know what thay are doing, In latter case they will be either hit by KASSERT or ESCRH will be returned due to NULL rnh.
This commit is contained in:
parent
b980262e63
commit
972ed56a33
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=265280
@ -402,15 +402,6 @@ rtalloc1_fib(struct sockaddr *dst, int report, u_long ignflags,
|
||||
int needlock;
|
||||
|
||||
KASSERT((fibnum < rt_numfibs), ("rtalloc1_fib: bad fibnum"));
|
||||
switch (dst->sa_family) {
|
||||
case AF_INET6:
|
||||
case AF_INET:
|
||||
/* We support multiple FIBs. */
|
||||
break;
|
||||
default:
|
||||
fibnum = RT_DEFAULT_FIB;
|
||||
break;
|
||||
}
|
||||
rnh = rt_tables_get_rnh(fibnum, dst->sa_family);
|
||||
newrt = NULL;
|
||||
if (rnh == NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user