netfilter: xtables: mark initial tables constant
[safe/jmp/linux-2.6] / include / linux / netfilter / xt_statistic.h
index c344e99..4e983ef 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef _XT_STATISTIC_H
 #define _XT_STATISTIC_H
 
+#include <linux/types.h>
+
 enum xt_statistic_mode {
        XT_STATISTIC_MODE_RANDOM,
        XT_STATISTIC_MODE_NTH,
@@ -13,20 +15,22 @@ enum xt_statistic_flags {
 };
 #define XT_STATISTIC_MASK              0x1
 
+struct xt_statistic_priv;
+
 struct xt_statistic_info {
-       u_int16_t                       mode;
-       u_int16_t                       flags;
+       __u16                   mode;
+       __u16                   flags;
        union {
                struct {
-                       u_int32_t       probability;
+                       __u32   probability;
                } random;
                struct {
-                       u_int32_t       every;
-                       u_int32_t       packet;
-                       u_int32_t       count;
+                       __u32   every;
+                       __u32   packet;
+                       __u32   count; /* unused */
                } nth;
        } u;
-       struct xt_statistic_info        *master __attribute__((aligned(8)));
+       struct xt_statistic_priv *master __attribute__((aligned(8)));
 };
 
 #endif /* _XT_STATISTIC_H */