]> git.proxmox.com Git - mirror_iproute2.git/blame - include/libiptc/libxtc.h
rdma: Properly mark RDMAtool license
[mirror_iproute2.git] / include / libiptc / libxtc.h
CommitLineData
6054c1eb 1/* SPDX-License-Identifier: GPL-2.0 */
5cd1adba
SH
2#ifndef _LIBXTC_H
3#define _LIBXTC_H
4/* Library which manipulates filtering rules. */
5
6#include <libiptc/ipt_kernel_headers.h>
7#include <linux/netfilter/x_tables.h>
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13#ifndef XT_MIN_ALIGN
14/* xt_entry has pointers and u_int64_t's in it, so if you align to
15 it, you'll also align to any crazy matches and targets someone
16 might write */
17#define XT_MIN_ALIGN (__alignof__(struct xt_entry))
18#endif
19
20#ifndef XT_ALIGN
21#define XT_ALIGN(s) (((s) + ((XT_MIN_ALIGN)-1)) & ~((XT_MIN_ALIGN)-1))
22#endif
23
24#define XTC_LABEL_ACCEPT "ACCEPT"
25#define XTC_LABEL_DROP "DROP"
26#define XTC_LABEL_QUEUE "QUEUE"
27#define XTC_LABEL_RETURN "RETURN"
28
29
30#ifdef __cplusplus
31}
32#endif
33
34#endif /* _LIBXTC_H */