Commit 1572e4bb authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Tweak local interface syntax.

parent 28e0d58f
......@@ -114,10 +114,10 @@ local_notify_neighbour(struct neighbour *neigh, int flush)
return;
rc = snprintf(buf, 512,
"neighbour %s%s at %s "
"%sneighbour %s address %s "
"dev %s reach %04x rxcost %d txcost %d cost %d\n",
format_address(neigh->id),
flush ? " flush" : "",
format_address(neigh->id),
format_address(neigh->address),
neigh->network->ifname,
neigh->reach,
......@@ -147,7 +147,7 @@ local_notify_xroute(struct xroute *xroute, int flush)
if(local_socket < 0)
return;
rc = snprintf(buf, 512, "xroute %s%s metric %d\n",
rc = snprintf(buf, 512, "%sxroute %s metric %d\n",
flush ? "flush " : "",
format_prefix(xroute->prefix, xroute->plen),
xroute->metric);
......@@ -175,7 +175,7 @@ local_notify_route(struct route *route, int flush)
return;
rc = snprintf(buf, 512,
"route %s%s installed %s "
"%sroute %s installed %s "
"id %s metric %d refmetric %d via %s if %s neigh %s\n",
flush ? "flush " : "",
format_prefix(route->src->prefix, route->src->plen),
......
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