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 <sharpd@nvidia.com>
This commit is contained in:
Donald Sharp 2021-10-28 08:16:49 -04:00
parent 6e1e2e8da9
commit 7090c9253d

View File

@ -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;