Commit 9edf0a14 authored by Matthieu Boutier's avatar Matthieu Boutier Committed by Juliusz Chroboczek

Make route_compare() globally defined.

parent a141a746
......@@ -56,10 +56,10 @@ static int two_to_the_one_over_hl = 0; /* 2^(1/hl) * 0x10000 */
contains a linked list of the routes to this prefix, with the
installed route, if any, at the head of the list. */
static int
int
route_compare(const unsigned char *prefix, unsigned char plen,
const unsigned char *src_prefix, unsigned char src_plen,
struct babel_route *route)
const struct babel_route *route)
{
int i = memcmp(prefix, route->src->prefix, 16);
if(i != 0)
......
......@@ -69,6 +69,9 @@ route_metric_noninterfering(const struct babel_route *route)
return MIN(m, INFINITY);
}
int route_compare(const unsigned char *prefix, unsigned char plen,
const unsigned char *src_prefix, unsigned char src_plen,
const struct babel_route *route);
struct babel_route *find_route(const unsigned char *prefix, unsigned char plen,
const unsigned char *src_prefix, unsigned char src_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