File: libxtc.h

package info (click to toggle)
iptables 1.4.8-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 3,696 kB
  • ctags: 3,860
  • sloc: ansic: 30,115; sh: 10,372; makefile: 132
file content (33 lines) | stat: -rw-r--r-- 724 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef _LIBXTC_H
#define _LIBXTC_H
/* Library which manipulates filtering rules. */

#include <libiptc/ipt_kernel_headers.h>
#include <linux/netfilter/x_tables.h>

#ifdef __cplusplus
extern "C" {
#endif

#ifndef XT_MIN_ALIGN
/* xt_entry has pointers and u_int64_t's in it, so if you align to
   it, you'll also align to any crazy matches and targets someone
   might write */
#define XT_MIN_ALIGN (__alignof__(struct xt_entry))
#endif

#ifndef XT_ALIGN
#define XT_ALIGN(s) (((s) + ((XT_MIN_ALIGN)-1)) & ~((XT_MIN_ALIGN)-1))
#endif

#define XTC_LABEL_ACCEPT  "ACCEPT"
#define XTC_LABEL_DROP    "DROP"
#define XTC_LABEL_QUEUE   "QUEUE"
#define XTC_LABEL_RETURN  "RETURN"


#ifdef __cplusplus
}
#endif

#endif /* _LIBXTC_H */