move a #define from a place it shouldn't have been to a place it should

have been.  Basically my testign didn't ocver one case that this broke.
thanks tinderbox!
This commit is contained in:
julian 2008-05-10 04:32:58 +00:00
parent 1c4898a1ad
commit 43dfbac626
2 changed files with 3 additions and 4 deletions

View File

@ -63,13 +63,13 @@
#include <vm/uma.h>
#ifndef ROUTETABLES
#undef RT_MAXFIBS
#define RT_NUMFIBS 1
#define RT_MAXFIBS 1
#else
/* while we use 4 bits in the mbuf flags,
* we are limited to 16
*/
#define RT_MAXFIBS 16
#if ROUTETABLES > RT_MAXFIBS
#define RT_NUMFIBS RT_MAXFIBS
#error "ROUTETABLES defined too big"
@ -150,7 +150,7 @@ route_init(void)
struct domain *dom;
int fam;
/* whack teh tunable ints into line. */
/* whack the tunable ints into line. */
if (rt_numfibs > RT_MAXFIBS)
rt_numfibs = RT_MAXFIBS;
if (rt_numfibs == 0)

View File

@ -82,7 +82,6 @@ struct rt_metrics {
#define RTM_RTTUNIT 1000000 /* units for rtt, rttvar, as units per sec */
#define RTTTOPRHZ(r) ((r) / (RTM_RTTUNIT / PR_SLOWHZ))
#define RT_MAXFIBS 16
extern u_int rt_numfibs; /* number fo usable routing tables */
extern u_int tunnel_fib; /* tunnels use these */
extern u_int fwd_fib; /* packets being forwarded use these routes */
@ -330,7 +329,7 @@ struct rt_addrinfo {
RTFREE_LOCKED(_rt); \
} while (0)
extern struct radix_node_head *rt_tables[RT_MAXFIBS][AF_MAX+1];
extern struct radix_node_head *rt_tables[][AF_MAX+1];
struct ifmultiaddr;