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:
Alexander V. Chernikov 2014-05-03 16:38:05 +00:00
parent b980262e63
commit 972ed56a33
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=265280

View File

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