diff options
| author | Russ White <russ@riw.us> | 2022-02-23 16:45:36 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-23 16:45:36 -0500 |
| commit | 1e982fdbdf306583dc597d4f7fd3d044e89dd93d (patch) | |
| tree | 518c50c30eca65d9f2f479a8c1023ccd1d35c779 /zebra/zebra_rnh.c | |
| parent | eaba619fc183f68a456b3918f449185b3b477426 (diff) | |
| parent | 9c46c484fe52d05ec05fa86b0fa2a8f616e0a880 (diff) | |
Merge pull request #10385 from iqras23/nh
zebra: Nexthop tracking, route resolution recursive lookup
Diffstat (limited to 'zebra/zebra_rnh.c')
| -rw-r--r-- | zebra/zebra_rnh.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/zebra/zebra_rnh.c b/zebra/zebra_rnh.c index f5faaab71b..8ca25359be 100644 --- a/zebra/zebra_rnh.c +++ b/zebra/zebra_rnh.c @@ -637,15 +637,11 @@ zebra_rnh_resolve_nexthop_entry(struct zebra_vrf *zvrf, afi_t afi, if (re) { *prn = rn; return re; - } - - if (!CHECK_FLAG(rnh->flags, ZEBRA_NHT_CONNECTED)) + } else { + /* Resolve the nexthop recursively by finding matching + * route with lower prefix length + */ rn = rn->parent; - else { - if (IS_ZEBRA_DEBUG_NHT_DETAILED) - zlog_debug( - " Nexthop must be connected, cannot recurse up"); - return NULL; } } |
