]> granicus.if.org Git - strace/commit
netlink: pass NLMSG_DONE messages to family specific payload decoders
authorJingPiao Chen <chenjingpiao@gmail.com>
Tue, 27 Jun 2017 08:16:56 +0000 (16:16 +0800)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 27 Jun 2017 09:37:09 +0000 (09:37 +0000)
commit54aed210364ac763374c3500de054c30e48e3f26
treea0f83bca8c8eb4988860a346bab99a38c70671df
parent2698d1d06050ce957f5157b84df189c9b211db65
netlink: pass NLMSG_DONE messages to family specific payload decoders

While many NLMSG_DONE messages indeed have payload containing
just one integer, there are exceptions. Handle this by passing
payloads of NLMSG_DONE messages to family specific netlink
payload decoders.

* netlink.c (print_nlmsghdr): Do not skip family detection
for nlmsg_type == NLMSG_DONE.
(decode_nlmsg_type): Skip family specific type decoders
for type == NLMSG_DONE.
(decode_nlmsg_flags): Skip family specific decoding of flags
for type == NLMSG_DONE.
(decode_netlink_sock_diag): Skip for nlmsg_type == NLMSG_DONE.
netlink.c
netlink_sock_diag.c