mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-11 20:26:36 +00:00
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:
parent
f820d02508
commit
e8968ccb2b
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user