netfilter: xtables: connlimit revision 1
[pandora-kernel.git] / include / linux / netfilter / xt_connlimit.h
index 90ae8b4..8884efc 100644 (file)
@@ -3,14 +3,31 @@
 
 struct xt_connlimit_data;
 
+enum {
+       XT_CONNLIMIT_INVERT = 1 << 0,
+       XT_CONNLIMIT_DADDR  = 1 << 1,
+};
+
 struct xt_connlimit_info {
        union {
-               u_int32_t v4_mask;
-               u_int32_t v6_mask[4];
+               union nf_inet_addr mask;
+#ifndef __KERNEL__
+               union {
+                       __be32 v4_mask;
+                       __be32 v6_mask[4];
+               };
+#endif
        };
        unsigned int limit, inverse;
+       union {
+               /* revision 0 */
+               unsigned int inverse;
+
+               /* revision 1 */
+               __u32 flags;
+       };
 
-       /* this needs to be at the end */
+       /* Used internally by the kernel */
        struct xt_connlimit_data *data __attribute__((aligned(8)));
 };