From: JingPiao Chen Date: Tue, 8 Aug 2017 14:39:21 +0000 (+0800) Subject: netlink: add decoding of NETLINK_KOBJECT_UEVENT messages X-Git-Tag: v4.19~165 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6555267d928852d004fae06a42bb6bd13e3edfc2;p=strace netlink: add decoding of NETLINK_KOBJECT_UEVENT messages * netlink.c (decode_netlink): Print NETLINK_KOBJECT_UEVENT messages as a string using printstrn. --- diff --git a/netlink.c b/netlink.c index eea75b6a..2f346735 100644 --- a/netlink.c +++ b/netlink.c @@ -449,6 +449,12 @@ decode_netlink(struct tcb *const tcp, kernel_ulong_t len) { const int family = get_fd_nl_family(tcp, fd); + + if (family == NETLINK_KOBJECT_UEVENT) { + printstrn(tcp, addr, len); + return; + } + struct nlmsghdr nlmsghdr; bool print_array = false; unsigned int elt;