Commit 3baa023e authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Define diversity_factor.

parent da886615
......@@ -43,6 +43,7 @@ struct route *routes = NULL;
int numroutes = 0, maxroutes = 0;
int kernel_metric = 0;
int allow_duplicates = -1;
int diversity_factor = 256; /* in units of 1/256 */
struct route *
find_route(const unsigned char *prefix, unsigned char plen,
......
......@@ -43,6 +43,7 @@ route_metric(const struct route *route)
extern struct route *routes;
extern int numroutes, maxroutes;
extern int kernel_metric, allow_duplicates;
extern int diversity_factor;
struct route *find_route(const unsigned char *prefix, unsigned char plen,
struct neighbour *neigh, const unsigned char *nexthop);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment