From e8968ccb2b0b6032b58a2e6a6bedea4766e3cd90 Mon Sep 17 00:00:00 2001 From: Stephen Worley Date: Wed, 6 Mar 2019 11:13:43 -0500 Subject: [PATCH] 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 --- zebra/rt_netlink.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c index 067fca5ee0..fd2054686e 100644 --- a/zebra/rt_netlink.c +++ b/zebra/rt_netlink.c @@ -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) { if (IS_ZEBRA_DEBUG_KERNEL)