From: Jan Engelhardt Date: Sun, 19 Dec 2010 01:27:53 +0000 (+0100) Subject: xt_set: avoid user types in exported kernel headers X-Git-Tag: v5.1~4^2~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=81145c5548a7ab94ff69fc92359ba17fdb03f4d6;p=ipset xt_set: avoid user types in exported kernel headers Within isolated code it would be ok, but not so in exported headers. --- diff --git a/kernel/include/linux/netfilter/xt_set.h b/kernel/include/linux/netfilter/xt_set.h index c6084df..69b2bd1 100644 --- a/kernel/include/linux/netfilter/xt_set.h +++ b/kernel/include/linux/netfilter/xt_set.h @@ -15,11 +15,11 @@ struct xt_set_info_v0 { ip_set_id_t index; union { - u_int32_t flags[IPSET_DIM_MAX + 1]; + __u32 flags[IPSET_DIM_MAX + 1]; struct { - u_int32_t __flags[IPSET_DIM_MAX]; - u_int8_t dim; - u_int8_t flags; + __u32 __flags[IPSET_DIM_MAX]; + __u8 dim; + __u8 flags; } compat; } u; }; @@ -38,8 +38,8 @@ struct xt_set_info_target_v0 { struct xt_set_info { ip_set_id_t index; - u_int8_t dim; - u_int8_t flags; + __u8 dim; + __u8 flags; }; /* match and target infos */