]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
netfilter: ipset: avoid use of kernel-only types
authorJan Engelhardt <jengelh@medozas.de>
Sat, 14 Jan 2012 16:38:55 +0000 (17:38 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 26 Mar 2012 19:06:30 +0000 (21:06 +0200)
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>
include/linux/netfilter/xt_set.h

index c0405ac928701a7d234986576baa69624ec1b71c..e3a9978f259f55425202664754e13c5504ed579e 100644 (file)
@@ -58,8 +58,8 @@ struct xt_set_info_target_v1 {
 struct xt_set_info_target_v2 {
        struct xt_set_info add_set;
        struct xt_set_info del_set;
-       u32 flags;
-       u32 timeout;
+       __u32 flags;
+       __u32 timeout;
 };
 
 #endif /*_XT_SET_H*/