summaryrefslogtreecommitdiff
path: root/zebra/debug_nl.c
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/debug_nl.c')
-rw-r--r--zebra/debug_nl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/zebra/debug_nl.c b/zebra/debug_nl.c
index 89ef7a2076..f8b866cd25 100644
--- a/zebra/debug_nl.c
+++ b/zebra/debug_nl.c
@@ -1083,8 +1083,9 @@ next_rta:
plen = RTA_PAYLOAD(rta);
zlog_debug(" rta [len=%d (payload=%zu) type=(%d) %s]", rta->rta_len,
- plen, rta->rta_type, rtm_rta2str(rta->rta_type));
- switch (rta->rta_type) {
+ plen, rta->rta_type & NLA_TYPE_MASK,
+ rtm_rta2str(rta->rta_type & NLA_TYPE_MASK));
+ switch (rta->rta_type & NLA_TYPE_MASK) {
case RTA_IIF:
case RTA_OIF:
case RTA_PRIORITY: