mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
Show interface for link-local gw in static protocol.
This commit is contained in:
parent
d7f469c15c
commit
8cf8f820fe
@ -539,7 +539,7 @@ static_show_rt(struct static_route *r)
|
|||||||
|
|
||||||
switch (r->dest)
|
switch (r->dest)
|
||||||
{
|
{
|
||||||
case RTD_ROUTER: bsprintf(via, "via %I", r->via); break;
|
case RTD_ROUTER: bsprintf(via, "via %I%J", r->via, r->via_if); break;
|
||||||
case RTD_DEVICE: bsprintf(via, "dev %s", r->if_name); break;
|
case RTD_DEVICE: bsprintf(via, "dev %s", r->if_name); break;
|
||||||
case RTD_BLACKHOLE: bsprintf(via, "blackhole"); break;
|
case RTD_BLACKHOLE: bsprintf(via, "blackhole"); break;
|
||||||
case RTD_UNREACHABLE: bsprintf(via, "unreachable"); break;
|
case RTD_UNREACHABLE: bsprintf(via, "unreachable"); break;
|
||||||
@ -553,7 +553,7 @@ static_show_rt(struct static_route *r)
|
|||||||
struct static_route *r2;
|
struct static_route *r2;
|
||||||
if (r->dest == RTD_MULTIPATH)
|
if (r->dest == RTD_MULTIPATH)
|
||||||
for (r2 = r->mp_next; r2; r2 = r2->mp_next)
|
for (r2 = r->mp_next; r2; r2 = r2->mp_next)
|
||||||
cli_msg(-1009, "\tvia %I weight %d%s", r2->via, r2->masklen + 1, /* really */
|
cli_msg(-1009, "\tvia %I%J weight %d%s", r2->via, r2->via_if, r2->masklen + 1, /* really */
|
||||||
r2->installed ? "" : " (dormant)");
|
r2->installed ? "" : " (dormant)");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user