]> granicus.if.org Git - strace/commit
nlattr: print index names in netlink meminfo array
authorEugene Syromyatnikov <evgsyr@gmail.com>
Thu, 10 May 2018 16:29:39 +0000 (18:29 +0200)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 30 May 2018 10:13:06 +0000 (10:13 +0000)
commit540d70fcb680228f7ccf58c11370b5f252e4b73e
tree440cff68d38f59cb77f42bf9b70a801afcfed246
parent10adc310cbd3e9f0b1703646946f82788a6731aa
nlattr: print index names in netlink meminfo array

* xlat/netlink_sk_meminfo_indices.in: New file.
* nlattr.c: Include xlat/netlink_sk_meminfo_indices.h.
(decode_nla_meminfo): Use print_array_ex, pass
netlink_sk_meminfo_indices as index xlat table.
* tests/nlattr_inet_diag_msg.c: Update expected output.
nlattr.c
tests/nlattr_inet_diag_msg.c
xlat/netlink_sk_meminfo_indices.in [new file with mode: 0644]