[PATCH v2] netlink: fix NLMSG_DONE never enter family specific decoder
JingPiao Chen
chenjingpiao at gmail.com
Mon Jun 26 14:22:10 UTC 2017
On Mon, Jun 26, 2017 at 05:03:41PM +0300, Dmitry V. Levin wrote:
> On Mon, Jun 26, 2017 at 10:29:40AM +0800, JingPiao Chen wrote:
> > * 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.
>
> Now I don't follow.
>
> What do you want to do with NLMSG_DONE messages, pass them to family
> specific decoders or not?
Pass them to family specific decoders.
> Ditto with other control messages, do you want to pass them to family
> specific decoders or not?
Do not pass them to family specific decoders.
--
JingPiao Chen
More information about the Strace-devel
mailing list