summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_vty.c
diff options
context:
space:
mode:
authorChristian Franke <chris@opensourcerouting.org>2018-07-19 21:16:06 +0200
committerChristian Franke <chris@opensourcerouting.org>2018-07-19 21:16:57 +0200
commitc9591045cc968762a15631ec466872c43c171f54 (patch)
treee83bfe184b6387fdf0e3073fd9b7cbdec66ad3d3 /zebra/zebra_vty.c
parentMerge pull request #2608 from pacovn/PVS-Studio_dead_code_1 (diff)
downloadfrr-c9591045cc968762a15631ec466872c43c171f54.tar.xz
frr-c9591045cc968762a15631ec466872c43c171f54.zip
zebra: fix do_show_route_helper to include srcdest routes
Diffstat (limited to '')
-rw-r--r--zebra/zebra_vty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c
index 55c4f6e91..8a37e1df2 100644
--- a/zebra/zebra_vty.c
+++ b/zebra/zebra_vty.c
@@ -1651,7 +1651,7 @@ static void do_show_route_helper(struct vty *vty, struct zebra_vrf *zvrf,
json = json_object_new_object();
/* Show all routes. */
- for (rn = route_top(table); rn; rn = route_next(rn)) {
+ for (rn = route_top(table); rn; rn = srcdest_route_next(rn)) {
dest = rib_dest_from_rnode(rn);
RNODE_FOREACH_RE (rn, re) {