diff options
author | Donald Sharp <sharpd@nvidia.com> | 2022-09-30 20:58:21 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2022-09-30 20:58:21 +0200 |
commit | a8cc325f590475f264b4d3c0b3a544b3cc441b9d (patch) | |
tree | 16d23b690ca0ba1319c25e54000fe51d37426276 /bgpd | |
parent | Merge pull request #12035 from donaldsharp/pim6_write_non_integrated (diff) | |
download | frr-a8cc325f590475f264b4d3c0b3a544b3cc441b9d.tar.xz frr-a8cc325f590475f264b4d3c0b3a544b3cc441b9d.zip |
bgpd: Fix `show bgp nexthop A.B.C.D`
The issuing of `show bgp nexthop A.B.C.D` fails even if that
nexthop exists:
eva# show bgp nexthop 192.168.119.120
specified nexthop does not have entry
Fixed:
eva# show bgp nexthop 192.168.119.120
192.168.119.120 valid [IGP metric 0], #paths 0, peer 192.168.119.120
if enp39s0
Last update: Fri Sep 30 14:55:13 2022
Paths:
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'bgpd')
-rw-r--r-- | bgpd/bgp_nexthop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_nexthop.c b/bgpd/bgp_nexthop.c index 7867860cb..59b31072b 100644 --- a/bgpd/bgp_nexthop.c +++ b/bgpd/bgp_nexthop.c @@ -919,7 +919,7 @@ static int show_ip_bgp_nexthop_table(struct vty *vty, const char *name, } tree = import_table ? &bgp->import_check_table : &bgp->nexthop_cache_table; - bnc = bnc_find(tree[family2afi(nhop.family)], &nhop, 0, 0); + bnc = bnc_find(&(*tree)[family2afi(nhop.family)], &nhop, 0, 0); if (!bnc) { vty_out(vty, "specified nexthop does not have entry\n"); return CMD_SUCCESS; |