summaryrefslogtreecommitdiff
path: root/zebra/kernel_netlink.c
diff options
context:
space:
mode:
authorJafar Al-Gharaibeh <Jafaral@users.noreply.github.com>2017-05-11 22:47:22 -0500
committerGitHub <noreply@github.com>2017-05-11 22:47:22 -0500
commita153bd94bccbbfd52558a660a9015764c3f4a2a3 (patch)
tree8ac26b236a0dbd0d69f048945c7837d06eb1fd6c /zebra/kernel_netlink.c
parent58670822986bb1d8e56181c6a86b55b1971523b7 (diff)
parent64a4bd09f0704eff92fdcbcede20662f46ab0c42 (diff)
Merge pull request #511 from donaldsharp/netlink_dump
zebra: Fix kernel netlink hex dump of information
Diffstat (limited to 'zebra/kernel_netlink.c')
-rw-r--r--zebra/kernel_netlink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/kernel_netlink.c b/zebra/kernel_netlink.c
index 763cd4adda..27beaf0c82 100644
--- a/zebra/kernel_netlink.c
+++ b/zebra/kernel_netlink.c
@@ -522,7 +522,7 @@ netlink_parse_info (int (*filter) (struct sockaddr_nl *, struct nlmsghdr *,
if (IS_ZEBRA_DEBUG_KERNEL_MSGDUMP_RECV)
{
zlog_debug("%s: << netlink message dump [recv]", __func__);
- zlog_hexdump(&msg, sizeof(msg));
+ zlog_hexdump(buf, status);
}
read_in++;
@@ -705,7 +705,7 @@ netlink_talk (int (*filter) (struct sockaddr_nl *, struct nlmsghdr *,
if (IS_ZEBRA_DEBUG_KERNEL_MSGDUMP_SEND)
{
zlog_debug("%s: >> netlink message dump [sent]", __func__);
- zlog_hexdump(&msg, sizeof(msg));
+ zlog_hexdump(n, n->nlmsg_len);
}
if (status < 0)