Commit f6e8e141 authored by Pavel Tvrdik's avatar Pavel Tvrdik Committed by Jan Moskyto Matejka

Check table type at `show route for ...'

parent 65d2a88d
......@@ -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");
if (d->show_for)
n = net_route(d->table, d->addr);
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