diff options
author | ßingen <bingen@voltanet.io> | 2017-06-27 12:49:49 +0200 |
---|---|---|
committer | ßingen <bingen@voltanet.io> | 2017-06-28 21:32:18 +0200 |
commit | f9e1b38e1a48b72cac7caaded16b9355c80d7899 (patch) | |
tree | 78ad561127d3cf9e3ba6d58972c21cc40a87d326 /tests | |
parent | Merge pull request #753 from dslicenc/cm16876-ospfv6-mtu (diff) | |
download | frr-f9e1b38e1a48b72cac7caaded16b9355c80d7899.tar.xz frr-f9e1b38e1a48b72cac7caaded16b9355c80d7899.zip |
Allow for more than 1 NH recursion level
Before, only one level of recursive resolution was supported.
Signed-off-by: ßingen <bingen@voltanet.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/test_nexthop_iter.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/lib/test_nexthop_iter.c b/tests/lib/test_nexthop_iter.c index 77515386c..6c8ffb8da 100644 --- a/tests/lib/test_nexthop_iter.c +++ b/tests/lib/test_nexthop_iter.c @@ -173,13 +173,12 @@ nexthop_chain_free(struct nexthop_chain *nc) static void nexthop_chain_verify_iter(struct nexthop_chain *nc) { - struct nexthop *nh, *tnh; - int recursing; + struct nexthop *nh; char *repr = NULL; - for (ALL_NEXTHOPS_RO(nc->head, nh, tnh, recursing)) + for (ALL_NEXTHOPS_RO(nc->head, nh)) { - if (recursing) + if (nh->rparent) str_appendf(&repr, " %p\n", nh); else str_appendf(&repr, "%p\n", nh); |