Go to the documentation of this file.
9 #ifndef _UAPI_ARPTABLES_H
10 #define _UAPI_ARPTABLES_H
12 #include <linux/types.h>
13 #include <linux/compiler.h>
16 #include <linux/netfilter/x_tables.h>
19 #define ARPT_FUNCTION_MAXNAMELEN XT_FUNCTION_MAXNAMELEN
20 #define ARPT_TABLE_MAXNAMELEN XT_TABLE_MAXNAMELEN
21 #define arpt_entry_target xt_entry_target
22 #define arpt_standard_target xt_standard_target
23 #define arpt_error_target xt_error_target
24 #define ARPT_CONTINUE XT_CONTINUE
25 #define ARPT_RETURN XT_RETURN
26 #define arpt_counters_info xt_counters_info
27 #define arpt_counters xt_counters
28 #define ARPT_STANDARD_TARGET XT_STANDARD_TARGET
29 #define ARPT_ERROR_TARGET XT_ERROR_TARGET
30 #define ARPT_ENTRY_ITERATE(entries, size, fn, args...) \
31 XT_ENTRY_ITERATE(struct arpt_entry, entries, size, fn, ## args)
34 #define ARPT_DEV_ADDR_LEN_MAX 16
76 #define ARPT_F_MASK 0x00
79 #define ARPT_INV_VIA_IN 0x0001
80 #define ARPT_INV_VIA_OUT 0x0002
81 #define ARPT_INV_SRCIP 0x0004
82 #define ARPT_INV_TGTIP 0x0008
83 #define ARPT_INV_SRCDEVADDR 0x0010
84 #define ARPT_INV_TGTDEVADDR 0x0020
85 #define ARPT_INV_ARPOP 0x0040
86 #define ARPT_INV_ARPHRD 0x0080
87 #define ARPT_INV_ARPPRO 0x0100
88 #define ARPT_INV_ARPHLN 0x0200
89 #define ARPT_INV_MASK 0x03FF
120 #define ARPT_BASE_CTL 96
122 #define ARPT_SO_SET_REPLACE (ARPT_BASE_CTL)
123 #define ARPT_SO_SET_ADD_COUNTERS (ARPT_BASE_CTL + 1)
124 #define ARPT_SO_SET_MAX ARPT_SO_SET_ADD_COUNTERS
126 #define ARPT_SO_GET_INFO (ARPT_BASE_CTL)
127 #define ARPT_SO_GET_ENTRIES (ARPT_BASE_CTL + 1)
129 #define ARPT_SO_GET_REVISION_TARGET (ARPT_BASE_CTL + 3)
130 #define ARPT_SO_GET_MAX (ARPT_SO_GET_REVISION_TARGET)