diff options
author | Pavel Tvrdik <pawel.tvrdik@gmail.com> | 2016-06-29 09:56:33 +0200 |
---|---|---|
committer | Jan Moskyto Matejka <mq@ucw.cz> | 2016-12-07 09:35:24 +0100 |
commit | f6e8e141df63cd86e344ca659637f23d638d47a2 (patch) | |
tree | 5baf1666da93d87fdb9e1a1fd12a4085ea8a7f8d /nest/rt-table.c | |
parent | 65d2a88dd2aaef7344cfa62918e3ddf4c72ca50a (diff) |
Check table type at `show route for ...'
Diffstat (limited to 'nest/rt-table.c')
-rw-r--r-- | nest/rt-table.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nest/rt-table.c b/nest/rt-table.c index 8d780633..cb45898f 100644 --- a/nest/rt-table.c +++ b/nest/rt-table.c @@ -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) n = net_route(d->table, d->addr); else |