On Tue, Aug 01, 2017 at 07:48:41AM +0800, JingPiao Chen wrote:
> Prepare for NETLINK_KOBJECT_UEVENT decode. The messages
> of NETLINK_KOBJECT_UEVENT do not contain nlmsghdr.
[...]
> (decode_nlmsghdr_with_payload): Skip family specific decoders
> for type < NLMSG_MIN_TYPE && type != NLMSG_DONE.
[...]
> @@ -182,7 +177,7 @@ decode_nlmsg_type(const uint16_t type, const unsigned int 
> family)
>       const struct xlat *xlat = netlink_types;
>       const char *dflt = "NLMSG_???";
>  
> -     if (type != NLMSG_DONE && family < ARRAY_SIZE(nlmsg_types)) {
> +     if (type >= NLMSG_MIN_TYPE && family < ARRAY_SIZE(nlmsg_types)) {

Why?  How this is related to the rest of NETLINK_KOBJECT_UEVENT change?


-- 
ldv

Attachment: signature.asc
Description: PGP signature

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Strace-devel mailing list
Strace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to