]> git.proxmox.com Git - mirror_frr.git/commitdiff
zebra: Add kernel debugging function for netlink nexthop messages
authorStephen Worley <sworley@cumulusnetworks.com>
Wed, 6 Mar 2019 16:13:43 +0000 (11:13 -0500)
committerStephen Worley <sworley@cumulusnetworks.com>
Fri, 25 Oct 2019 15:13:36 +0000 (11:13 -0400)
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>
zebra/rt_netlink.c

index 067fca5ee09debd01fca99d80ce86349c073a655..fd2054686e6cfc256d5f289109974168831f96f7 100644 (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)
 {
        if (IS_ZEBRA_DEBUG_KERNEL)