zebra: Add kernel debugging function for netlink nexthop messages

We needed a kernel debugging function for netlink nexthop
messages when people are debugging kernel zebra messages.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
This commit is contained in:
Stephen Worley 2019-03-06 11:13:43 -05:00
parent f820d02508
commit e8968ccb2b

View File

@ -1433,6 +1433,13 @@ static void _netlink_route_debug(int cmd, const struct prefix *p,
} }
} }
static void _netlink_nexthop_debug(int cmd, uint32_t id)
{
if (IS_ZEBRA_DEBUG_KERNEL)
zlog_debug("netlink_nexthop(): %s, id=%u",
nl_msg_type_to_str(cmd), id);
}
static void _netlink_mpls_debug(int cmd, uint32_t label, const char *routedesc) static void _netlink_mpls_debug(int cmd, uint32_t label, const char *routedesc)
{ {
if (IS_ZEBRA_DEBUG_KERNEL) if (IS_ZEBRA_DEBUG_KERNEL)