blob: 37010188b64fdcf30a2e4d1f240d88b3e8925b90 [file] [log] [blame]
Stephen Hemminger5cd1adb2016-01-03 15:14:27 -08001#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
9extern "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 */