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

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

parent 65d2a88d
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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