diff options
Diffstat (limited to 'zebra/debug_nl.c')
| -rw-r--r-- | zebra/debug_nl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/zebra/debug_nl.c b/zebra/debug_nl.c index 842579f89e..0e0ccccb6a 100644 --- a/zebra/debug_nl.c +++ b/zebra/debug_nl.c @@ -29,6 +29,7 @@ #include <stdint.h> #include "zebra/rt_netlink.h" +#include "zebra/kernel_netlink.h" const char *nlmsg_type2str(uint16_t type) { @@ -926,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; @@ -1044,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); |
