• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #define XTC_LABEL_ACCEPT  "ACCEPT"
24 #define XTC_LABEL_DROP    "DROP"
25 #define XTC_LABEL_QUEUE   "QUEUE"
26 #define XTC_LABEL_RETURN  "RETURN"
27 
28 
29 #ifdef __cplusplus
30 }
31 #endif
32 
33 #endif /* _LIBXTC_H */
34