summaryrefslogtreecommitdiffstats
path: root/zebra/debug_nl.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2021-10-28 14:10:28 +0200
committerDonald Sharp <sharpd@nvidia.com>2021-10-28 14:10:28 +0200
commit6e1e2e8da971bbdc1d4dc79012a81282f92dde00 (patch)
tree2708ffedb1091f79abb7dfb4aeeb3a295fcd424f /zebra/debug_nl.c
parentMerge pull request #9870 from opensourcerouting/zebra-rib-select-order (diff)
downloadfrr-6e1e2e8da971bbdc1d4dc79012a81282f92dde00.tar.xz
frr-6e1e2e8da971bbdc1d4dc79012a81282f92dde00.zip
zebra: Fix netlink RTM_NEWNEXTHOP parsing for nested attributes
With the addition of resillient hashing for nexthops, the parsing of nexthops requires telling the decoder functions that there may be nested attributes. This was found by code inspection of iproute2/ipnexthop.c when trying to understand resillient hashing as well as statistics gathering for nexthops that are / will be in upstream kernels in the near future. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/debug_nl.c')
-rw-r--r--zebra/debug_nl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/debug_nl.c b/zebra/debug_nl.c
index 2175aaff6..7a44ff761 100644
--- a/zebra/debug_nl.c
+++ b/zebra/debug_nl.c
@@ -1045,7 +1045,7 @@ next_rta:
plen = RTA_PAYLOAD(rta);
zlog_debug(" rta [len=%d (payload=%zu) type=(%d) %s]", rta->rta_len,
plen, rta->rta_type, nhm_rta2str(rta->rta_type));
- switch (rta->rta_type) {
+ switch (rta->rta_type & ~NLA_F_NESTED) {
case NHA_ID:
u32v = *(uint32_t *)RTA_DATA(rta);
zlog_debug(" %u", u32v);