strace/xlat/netlink_sk_meminfo_indices.in
Eugene Syromyatnikov 540d70fcb6 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.
2018-05-30 10:13:06 +00:00

11 lines
211 B
Plaintext

#value_indexed
SK_MEMINFO_RMEM_ALLOC 0
SK_MEMINFO_RCVBUF 1
SK_MEMINFO_WMEM_ALLOC 2
SK_MEMINFO_SNDBUF 3
SK_MEMINFO_FWD_ALLOC 4
SK_MEMINFO_WMEM_QUEUED 5
SK_MEMINFO_OPTMEM 6
SK_MEMINFO_BACKLOG 7
SK_MEMINFO_DROPS 8