mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 17:51:53 +00:00
Check table type at `show route for ...'
This commit is contained in:
parent
65d2a88dd2
commit
f6e8e141df
@ -2683,6 +2683,12 @@ rt_show(struct rt_show_data *d)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (d->table->addr_type != d->addr->type)
|
||||||
|
{
|
||||||
|
cli_msg(8001, "Incompatible type of prefix/ip with table");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (d->show_for)
|
if (d->show_for)
|
||||||
n = net_route(d->table, d->addr);
|
n = net_route(d->table, d->addr);
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user