netlink: add decoding of NETLINK_KOBJECT_UEVENT messages

* netlink.c (decode_netlink): Print NETLINK_KOBJECT_UEVENT messages
as a string using printstrn.
This commit is contained in:
JingPiao Chen 2017-08-08 22:39:21 +08:00 committed by Dmitry V. Levin
parent 338f0592ae
commit 6555267d92

View File

@ -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;