1 /****************************************************************************
2 ****************************************************************************
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
10 ****************************************************************************
11 ****************************************************************************/
15 #define XT_FUNCTION_MAXNAMELEN 30
16 #define XT_TABLE_MAXNAMELEN 32
24 char name[XT_FUNCTION_MAXNAMELEN-1];
31 struct xt_match *match;
37 unsigned char data[0];
40 struct xt_entry_target
44 u_int16_t target_size;
46 char name[XT_FUNCTION_MAXNAMELEN-1];
51 u_int16_t target_size;
53 struct xt_target *target;
56 u_int16_t target_size;
59 unsigned char data[0];
62 struct xt_standard_target
64 struct xt_entry_target target;
68 struct xt_get_revision
70 char name[XT_FUNCTION_MAXNAMELEN-1];
75 #define XT_CONTINUE 0xFFFFFFFF
77 #define XT_RETURN (-NF_REPEAT - 1)
87 #define XT_ALIGN(s) (((s) + (__alignof__(struct _xt_align)-1)) & ~(__alignof__(struct _xt_align)-1))
89 #define XT_STANDARD_TARGET ""
91 #define XT_ERROR_TARGET "ERROR"
93 #define XT_BASE_CTL 64
95 #define XT_SO_SET_REPLACE (XT_BASE_CTL)
96 #define XT_SO_SET_ADD_COUNTERS (XT_BASE_CTL + 1)
97 #define XT_SO_SET_MAX XT_SO_SET_ADD_COUNTERS
99 #define XT_SO_GET_INFO (XT_BASE_CTL)
100 #define XT_SO_GET_ENTRIES (XT_BASE_CTL + 1)
101 #define XT_SO_GET_REVISION_MATCH (XT_BASE_CTL + 2)
102 #define XT_SO_GET_REVISION_TARGET (XT_BASE_CTL + 3)
103 #define XT_SO_GET_MAX XT_SO_GET_REVISION_TARGET
105 #define SET_COUNTER(c,b,p) do { (c).bcnt = (b); (c).pcnt = (p); } while(0)
106 #define ADD_COUNTER(c,b,p) do { (c).bcnt += (b); (c).pcnt += (p); } while(0)
110 u_int64_t pcnt, bcnt;
113 struct xt_counters_info
116 char name[XT_TABLE_MAXNAMELEN];
118 unsigned int num_counters;
120 struct xt_counters counters[0];
123 #define XT_INV_PROTO 0x40