strace/netlink_kobject_uevent.h
Harsha Sharma c9694f85ed netlink: decode libudev netlink header
* defs.h (decode_netlink_kobject_uevent): New prototype.
* netlink.c (decode_netlink): Decode family kobject_uevent.
* netlink_kobject_uevent.h: New file.
* netlink_kobject_uevent.c: Likewise.
* Makefile.am (strace_SOURCES): Add them.

Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
Signed-off-by: Harsha Sharma <harshasharmaiitr@gmail.com>
2018-04-11 22:01:37 +00:00

18 lines
502 B
C

#ifndef STRACE_NETLINK_KOBJECT_UEVENT_H
#define STRACE_NETLINK_KOBJECT_UEVENT_H
struct udev_monitor_netlink_header {
/* "libudev" prefix to distinguish libudev and kernel messages */
char prefix[8];
unsigned int magic;
unsigned int header_size;
unsigned int properties_off;
unsigned int properties_len;
unsigned int filter_subsystem_hash;
unsigned int filter_devtype_hash;
unsigned int filter_tag_bloom_hi;
unsigned int filter_tag_bloom_lo;
};
#endif /* !STRACE_NETLINK_KOBJECT_UEVENT_H */