network: comment libgcrypt initalization process
[collectd.git] / src / owniptc / libxtc.h
1 /**
2  * This file was imported from the iptables sources.
3  * Copyright (C) 1999-2008 Netfilter Core Team
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU General Public License as published by the
7  * Free Software Foundation; only version 2 of the License is applicable.
8  *
9  * This program is distributed in the hope that it will be useful, but
10  * WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
17  */
18
19 #ifndef _LIBXTC_H
20 #define _LIBXTC_H
21 /* Library which manipulates filtering rules. */
22
23 #include "ipt_kernel_headers.h"
24 #include <linux/netfilter/x_tables.h>
25
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29
30 #ifndef XT_MIN_ALIGN
31 /* xt_entry has pointers and u_int64_t's in it, so if you align to
32    it, you'll also align to any crazy matches and targets someone
33    might write */
34 #define XT_MIN_ALIGN (__alignof__(struct xt_entry))
35 #endif
36
37 #ifndef XT_ALIGN
38 #define XT_ALIGN(s) (((s) + ((XT_MIN_ALIGN)-1)) & ~((XT_MIN_ALIGN)-1))
39 #endif
40
41 typedef char xt_chainlabel[32];
42
43 #define XTC_LABEL_ACCEPT  "ACCEPT"
44 #define XTC_LABEL_DROP    "DROP"
45 #define XTC_LABEL_QUEUE   "QUEUE"
46 #define XTC_LABEL_RETURN  "RETURN"
47
48
49 #ifdef __cplusplus
50 }
51 #endif
52
53 #endif /* _LIBXTC_H */