Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

netfilter: ipset: avoid use of kernel-only types

When using the xt_set.h header in userspace, one will get these gcc
reports:

ipset/ip_set.h:184:1: error: unknown type name "u16"
In file included from libxt_SET.c:21:0:
netfilter/xt_set.h:61:2: error: unknown type name "u32"
netfilter/xt_set.h:62:2: error: unknown type name "u32"

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>

authored by

Jan Engelhardt and committed by
Pablo Neira Ayuso
5276e16b f3d229c6

+2 -2
+2 -2
include/linux/netfilter/xt_set.h
··· 58 58 struct xt_set_info_target_v2 { 59 59 struct xt_set_info add_set; 60 60 struct xt_set_info del_set; 61 - u32 flags; 62 - u32 timeout; 61 + __u32 flags; 62 + __u32 timeout; 63 63 }; 64 64 65 65 #endif /*_XT_SET_H*/