]> granicus.if.org Git - strace/commit
socketutils: build a dynamic xlat table for NETLINK_GENERIC decoding
authorMasatake YAMATO <yamato@redhat.com>
Tue, 13 Jun 2017 08:26:43 +0000 (17:26 +0900)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 19 Jun 2017 21:45:58 +0000 (21:45 +0000)
commit641f3ef7b62cfa458f65f52ed4b37616a181c051
tree5f3d4a393d8875d6af3eea03af824f51ddf41201
parent5dca1b261bb293b56ad29235274c7b87578a5fab
socketutils: build a dynamic xlat table for NETLINK_GENERIC decoding

* configure.ac (AC_CHECK_HEADERS): Add linux/genetlink.h.
* defs.h (genl_families_xlat): New prototype.
* socketutils.c [HAVE_LINUX_GENETLINK_H]: Include <linux/genetlink.h>.
[HAVE_LINUX_GENETLINK_H] (genl_send_dump_families,
genl_parse_families_response): New helper functions.
(genl_families_xlat): New function for building the xlat table
for NETLINK_GENERIC decoding.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
configure.ac
defs.h
socketutils.c