Commit a447d2f4 authored by Matthieu Boutier's avatar Matthieu Boutier

Export metric_to_kernel().

parent 5ed958c1
...@@ -455,7 +455,7 @@ find_min_iroute(const unsigned char *dst_prefix, unsigned char dst_plen, ...@@ -455,7 +455,7 @@ find_min_iroute(const unsigned char *dst_prefix, unsigned char dst_plen,
return result; return result;
} }
static int int
metric_to_kernel(int metric) metric_to_kernel(int metric)
{ {
return metric < INFINITY ? kernel_metric : KERNEL_INFINITY; return metric < INFINITY ? kernel_metric : KERNEL_INFINITY;
......
...@@ -87,6 +87,7 @@ void flush_interface_routes(struct interface *ifp, int v4only); ...@@ -87,6 +87,7 @@ void flush_interface_routes(struct interface *ifp, int v4only);
struct route_stream *route_stream(int installed); struct route_stream *route_stream(int installed);
struct babel_route *route_stream_next(struct route_stream *stream); struct babel_route *route_stream_next(struct route_stream *stream);
void route_stream_done(struct route_stream *stream); void route_stream_done(struct route_stream *stream);
int metric_to_kernel(int metric);
void install_route(struct babel_route *route); void install_route(struct babel_route *route);
void uninstall_route(struct babel_route *route); void uninstall_route(struct babel_route *route);
int route_feasible(struct babel_route *route); int route_feasible(struct babel_route *route);
......
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