kern/135067: [patch] [fib] Incorrect KASSERTs in sys/net/route.c
Julian Elischer
julian at elischer.org
Sat May 30 02:20:05 UTC 2009
The following reply was made to PR kern/135067; it has been noted by GNATS.
From: Julian Elischer <julian at elischer.org>
To: bug-followup at FreeBSD.org, mjguzik at gmail.com
Cc:
Subject: Re: kern/135067: [patch] [fib] Incorrect KASSERTs in sys/net/route.c
Date: Fri, 29 May 2009 18:58:48 -0700
if you have 16 fibs then valid values are 0,1,2,.....14,15
if fibnum == rt_numfibs then that is an error.
thus in setfib... if uap->numfbs is 16 OR GREATER it is and EINVAL
and the kasserts in route.c need to check that fibnum is LESS THAN
rt_numfibs.
so this looks correct to me..
what makes you think there is an error?
More information about the freebsd-net
mailing list