]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: Log how we got to this failure. 2535/head
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 22 Jun 2018 18:26:56 +0000 (14:26 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 25 Jun 2018 14:02:48 +0000 (10:02 -0400)
When a filter function fails to work correctly, we get an
error message that something has gone wrong.  Unfortunately
we may not have any clues as to where the decode failure
happened.  Add a backtrace to give us a clue.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
zebra/kernel_netlink.c

index 6d164cfdabf700e8a91c801f87f3b1e7c8c5604c..7334c8094a3001c0bf4ccde57cb0ff43842c3b14 100644 (file)
@@ -772,6 +772,7 @@ int netlink_parse_info(int (*filter)(struct nlmsghdr *, ns_id_t, int),
                        error = (*filter)(h, zns->ns_id, startup);
                        if (error < 0) {
                                zlog_err("%s filter function error", nl->name);
+                               zlog_backtrace(LOG_ERR);
                                ret = error;
                        }
                }