From: Stephen Hemminger <[EMAIL PROTECTED]> Date: Wed, 26 Apr 2006 10:45:21 -0700
> +struct brifinfo { > + __u8 state; > + __u32 cost; > +}; > + Maybe put the __u32 first and explicitly pad out the 3 bytes after the __u8? Just to be safe. I know you use an assignment initializer, so your current code won't leak kernel data into userspace, but a safer layout might help provide even more protection for future code using this data structure. - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html