Blame include/libiptc/libxtc.h
|
Packit |
7b22a4 |
#ifndef _LIBXTC_H
|
|
Packit |
7b22a4 |
#define _LIBXTC_H
|
|
Packit |
7b22a4 |
/* Library which manipulates filtering rules. */
|
|
Packit |
7b22a4 |
|
|
Packit |
7b22a4 |
#include <libiptc/ipt_kernel_headers.h>
|
|
Packit |
7b22a4 |
#include <linux/netfilter/x_tables.h>
|
|
Packit |
7b22a4 |
|
|
Packit |
7b22a4 |
#ifdef __cplusplus
|
|
Packit |
7b22a4 |
extern "C" {
|
|
Packit |
7b22a4 |
#endif
|
|
Packit |
7b22a4 |
|
|
Packit |
7b22a4 |
#ifndef XT_MIN_ALIGN
|
|
Packit |
7b22a4 |
/* xt_entry has pointers and u_int64_t's in it, so if you align to
|
|
Packit |
7b22a4 |
it, you'll also align to any crazy matches and targets someone
|
|
Packit |
7b22a4 |
might write */
|
|
Packit |
7b22a4 |
#define XT_MIN_ALIGN (__alignof__(struct xt_entry))
|
|
Packit |
7b22a4 |
#endif
|
|
Packit |
7b22a4 |
|
|
Packit |
7b22a4 |
#ifndef XT_ALIGN
|
|
Packit |
7b22a4 |
#define XT_ALIGN(s) (((s) + ((XT_MIN_ALIGN)-1)) & ~((XT_MIN_ALIGN)-1))
|
|
Packit |
7b22a4 |
#endif
|
|
Packit |
7b22a4 |
|
|
Packit |
7b22a4 |
#define XTC_LABEL_ACCEPT "ACCEPT"
|
|
Packit |
7b22a4 |
#define XTC_LABEL_DROP "DROP"
|
|
Packit |
7b22a4 |
#define XTC_LABEL_QUEUE "QUEUE"
|
|
Packit |
7b22a4 |
#define XTC_LABEL_RETURN "RETURN"
|
|
Packit |
7b22a4 |
|
|
Packit |
7b22a4 |
|
|
Packit |
7b22a4 |
#ifdef __cplusplus
|
|
Packit |
7b22a4 |
}
|
|
Packit |
7b22a4 |
#endif
|
|
Packit |
7b22a4 |
|
|
Packit |
7b22a4 |
#endif /* _LIBXTC_H */
|