[PATCH v3] netlink: fix NLMSG_DONE never enter family specific decoder

Dmitry V. Levin ldv at altlinux.org
Tue Jun 27 11:23:47 UTC 2017

On Tue, Jun 27, 2017 at 04:16:56PM +0800, JingPiao Chen wrote:
> 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.

Applied, thanks.

> * netlink.c (print_nlmsghdr): Add condition
> nlmsghdr->nlmsg_type != NLMSG_DONE.
> (decode_nlmsg_type): Add condition type != NLMSG_DONE.
> (decode_nlmsg_flags): Add condition type == NLMSG_DONE.
> (decode_netlink_sock_diag): Add condition
> nlmsghdr->nlmsg_type == NLMSG_DONE.

I changed wording slightly to make the description more readable.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20170627/04d774ef/attachment.bin>

More information about the Strace-devel mailing list