Author: melifaro
Date: Sat May  3 16:38:05 2014
New Revision: 265280
URL: http://svnweb.freebsd.org/changeset/base/265280

Log:
  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.

Modified:
  head/sys/net/route.c

Modified: head/sys/net/route.c
==============================================================================
--- head/sys/net/route.c        Sat May  3 16:28:54 2014        (r265279)
+++ head/sys/net/route.c        Sat May  3 16:38:05 2014        (r265280)
@@ -402,15 +402,6 @@ rtalloc1_fib(struct sockaddr *dst, int r
        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)
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to