changing trunk/trunk to trunk
[iptables.git] / include / libiptc / libxtc.h
1 #ifndef _LIBXTC_H
2 #define _LIBXTC_H
3 /* Library which manipulates filtering rules. */
4
5 #include <libiptc/ipt_kernel_headers.h>
6 #include <linux/netfilter/x_tables.h>
7
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11
12 #ifndef XT_MIN_ALIGN
13 /* xt_entry has pointers and u_int64_t's in it, so if you align to
14    it, you'll also align to any crazy matches and targets someone
15    might write */
16 #define XT_MIN_ALIGN (__alignof__(struct xt_entry))
17 #endif
18
19 #ifndef XT_ALIGN
20 #define XT_ALIGN(s) (((s) + ((XT_MIN_ALIGN)-1)) & ~((XT_MIN_ALIGN)-1))
21 #endif
22
23 typedef char xt_chainlabel[32];
24
25 #define XTC_LABEL_ACCEPT  "ACCEPT"
26 #define XTC_LABEL_DROP    "DROP"
27 #define XTC_LABEL_QUEUE   "QUEUE"
28 #define XTC_LABEL_RETURN  "RETURN"
29
30
31 #ifdef __cplusplus
32 }
33 #endif
34
35 #endif /* _LIBXTC_H */