mirror of
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git
synced 2024-11-15 22:15:13 +08:00
6054c1ebf7
For all files in iproute2 which do not have an obvious license identification, mark them with SPDK GPL-2 Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
35 lines
763 B
C
35 lines
763 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#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 */
|