From 7090c9253de26fd8742f12858e5ef604328341cd Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 28 Oct 2021 08:16:49 -0400 Subject: [PATCH] zebra: debug_nl.c ensure we can read RTM_NEWNEIGH bridge nested attrs The kernel can return to us nested attributes for BRIDGE RTM_NEWNEIGH attributes. Just ensure that we can parse and read them. Signed-off-by: Donald Sharp --- zebra/debug_nl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zebra/debug_nl.c b/zebra/debug_nl.c index 7a44ff761b..0e0ccccb6a 100644 --- a/zebra/debug_nl.c +++ b/zebra/debug_nl.c @@ -927,7 +927,7 @@ next_rta: plen = RTA_PAYLOAD(rta); zlog_debug(" rta [len=%d (payload=%zu) type=(%d) %s]", rta->rta_len, plen, rta->rta_type, neigh_rta2str(rta->rta_type)); - switch (rta->rta_type) { + switch (rta->rta_type & ~ NLA_F_NESTED) { case NDA_LLADDR: datap = RTA_DATA(rta); dbuf[0] = 0; -- 2.39.5