]> git.proxmox.com Git - mirror_frr.git/commit - zebra/if_netlink.c
zebra: Add error messages in places where we have a decode problem
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 22 Jun 2018 18:22:02 +0000 (14:22 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 25 Jun 2018 14:02:48 +0000 (10:02 -0400)
commit9bdf861803dd019bc706b5714b04440c6f8696bb
treeb8de645144c888e95cce37e2b4a5e0f86bfa5f37
parent3a743cb7ec5fd1e91e0803487c606cf63e54c22b
zebra: Add error messages in places where we have a decode problem

When we receive a netlink message from the kernel we have
handler functions for when we send a netlink command, if these
return a failure ( < 0 ) then we output that we had a parse
issue.  But if all we get is:

2018-06-21T23:47:45.298156+00:00 qct-ix1-08 zebra[1484]: netlink-cmd (NS 0) filter function error

Then it is not very useful to figure out *where* the error happened.

Add more error code when in a decode path to hopefully allow us
to figure out where this message is coming from.

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