netlink: NLMSG_DONE never enter specific family decoder

Dmitry V. Levin ldv at altlinux.org
Sat Jun 24 01:36:34 UTC 2017


On Sat, Jun 24, 2017 at 09:06:06AM +0800, JingPiao Chen wrote:
> static int
> print_nlmsghdr(struct tcb *tcp,
>       const int fd,
>       int family,
>       const struct nlmsghdr *const nlmsghdr)
> {
> ...
> const int hdr_family = (nlmsghdr->nlmsg_type < NLMSG_MIN_TYPE)
>       ? NL_FAMILY_DEFAULT
>       : (family != NL_FAMILY_DEFAULT
>  ? family : get_fd_nl_family(tcp, fd));

Feel free to change this if NLMSG_DONE needs a family specific decoding.


-- 
ldv
-------------- 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/20170624/ee5d6535/attachment.bin>


More information about the Strace-devel mailing list