Commit 5e4d04ce authored by Joanne Hugé's avatar Joanne Hugé

Remove src-prefix when ipv6_subtrees is disabled

parent cc0f7ebe
......@@ -491,6 +491,8 @@ install_route(struct babel_route *route)
debugf("install_route(%s from %s)\n",
format_prefix(route->src->prefix, route->src->plen),
format_prefix(route->src->src_prefix, route->src->src_plen));
if(!has_ipv6_subtrees)
route->src->src_plen = 0;
rc = change_route(ROUTE_ADD, route, metric_to_kernel(route_metric(route)),
NULL, 0, 0);
if(rc < 0 && errno != EEXIST) {
......
  • mentioned in merge request re6stnet!43 (closed)

    Toggle commit list
  • It looks like we are going to use this patch. Shouldn't we have a similar change in uninstall_route and switch_routes ? Or maybe only patch change_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