1 #ifndef _LINUX_NF_TABLES_H
2 #define _LINUX_NF_TABLES_H
4 #define NFT_CHAIN_MAXNAMELEN 32
5 #define NFT_USERDATA_MAXLEN 256
15 #define NFT_REG_MAX (__NFT_REG_MAX - 1)
18 * enum nft_verdicts - nf_tables internal verdicts
20 * @NFT_CONTINUE: continue evaluation of the current rule
21 * @NFT_BREAK: terminate evaluation of the current rule
22 * @NFT_JUMP: push the current chain on the jump stack and jump to a chain
23 * @NFT_GOTO: jump to a chain without pushing the current chain on the jump stack
24 * @NFT_RETURN: return to the topmost chain on the jump stack
26 * The nf_tables verdicts share their numeric space with the netfilter verdicts.
37 * enum nf_tables_msg_types - nf_tables netlink message types
39 * @NFT_MSG_NEWTABLE: create a new table (enum nft_table_attributes)
40 * @NFT_MSG_GETTABLE: get a table (enum nft_table_attributes)
41 * @NFT_MSG_DELTABLE: delete a table (enum nft_table_attributes)
42 * @NFT_MSG_NEWCHAIN: create a new chain (enum nft_chain_attributes)
43 * @NFT_MSG_GETCHAIN: get a chain (enum nft_chain_attributes)
44 * @NFT_MSG_DELCHAIN: delete a chain (enum nft_chain_attributes)
45 * @NFT_MSG_NEWRULE: create a new rule (enum nft_rule_attributes)
46 * @NFT_MSG_GETRULE: get a rule (enum nft_rule_attributes)
47 * @NFT_MSG_DELRULE: delete a rule (enum nft_rule_attributes)
48 * @NFT_MSG_NEWSET: create a new set (enum nft_set_attributes)
49 * @NFT_MSG_GETSET: get a set (enum nft_set_attributes)
50 * @NFT_MSG_DELSET: delete a set (enum nft_set_attributes)
51 * @NFT_MSG_NEWSETELEM: create a new set element (enum nft_set_elem_attributes)
52 * @NFT_MSG_GETSETELEM: get a set element (enum nft_set_elem_attributes)
53 * @NFT_MSG_DELSETELEM: delete a set element (enum nft_set_elem_attributes)
55 enum nf_tables_msg_types
{
75 * enum nft_list_attributes - nf_tables generic list netlink attributes
77 * @NFTA_LIST_ELEM: list element (NLA_NESTED)
79 enum nft_list_attributes
{
84 #define NFTA_LIST_MAX (__NFTA_LIST_MAX - 1)
87 * enum nft_hook_attributes - nf_tables netfilter hook netlink attributes
89 * @NFTA_HOOK_HOOKNUM: netfilter hook number (NLA_U32)
90 * @NFTA_HOOK_PRIORITY: netfilter hook priority (NLA_U32)
92 enum nft_hook_attributes
{
98 #define NFTA_HOOK_MAX (__NFTA_HOOK_MAX - 1)
101 * enum nft_table_flags - nf_tables table flags
103 * @NFT_TABLE_F_DORMANT: this table is not active
105 enum nft_table_flags
{
106 NFT_TABLE_F_DORMANT
= 0x1,
110 * enum nft_table_attributes - nf_tables table netlink attributes
112 * @NFTA_TABLE_NAME: name of the table (NLA_STRING)
113 * @NFTA_TABLE_FLAGS: bitmask of enum nft_table_flags (NLA_U32)
114 * @NFTA_TABLE_USE: number of chains in this table (NLA_U32)
116 enum nft_table_attributes
{
123 #define NFTA_TABLE_MAX (__NFTA_TABLE_MAX - 1)
126 * enum nft_chain_attributes - nf_tables chain netlink attributes
128 * @NFTA_CHAIN_TABLE: name of the table containing the chain (NLA_STRING)
129 * @NFTA_CHAIN_HANDLE: numeric handle of the chain (NLA_U64)
130 * @NFTA_CHAIN_NAME: name of the chain (NLA_STRING)
131 * @NFTA_CHAIN_HOOK: hook specification for basechains (NLA_NESTED: nft_hook_attributes)
132 * @NFTA_CHAIN_POLICY: numeric policy of the chain (NLA_U32)
133 * @NFTA_CHAIN_USE: number of references to this chain (NLA_U32)
134 * @NFTA_CHAIN_TYPE: type name of the string (NLA_NUL_STRING)
135 * @NFTA_CHAIN_COUNTERS: counter specification of the chain (NLA_NESTED: nft_counter_attributes)
137 enum nft_chain_attributes
{
149 #define NFTA_CHAIN_MAX (__NFTA_CHAIN_MAX - 1)
152 * enum nft_rule_attributes - nf_tables rule netlink attributes
154 * @NFTA_RULE_TABLE: name of the table containing the rule (NLA_STRING)
155 * @NFTA_RULE_CHAIN: name of the chain containing the rule (NLA_STRING)
156 * @NFTA_RULE_HANDLE: numeric handle of the rule (NLA_U64)
157 * @NFTA_RULE_EXPRESSIONS: list of expressions (NLA_NESTED: nft_expr_attributes)
158 * @NFTA_RULE_COMPAT: compatibility specifications of the rule (NLA_NESTED: nft_rule_compat_attributes)
159 * @NFTA_RULE_POSITION: numeric handle of the previous rule (NLA_U64)
160 * @NFTA_RULE_USERDATA: user data (NLA_BINARY, NFT_USERDATA_MAXLEN)
162 enum nft_rule_attributes
{
167 NFTA_RULE_EXPRESSIONS
,
173 #define NFTA_RULE_MAX (__NFTA_RULE_MAX - 1)
176 * enum nft_rule_compat_flags - nf_tables rule compat flags
178 * @NFT_RULE_COMPAT_F_INV: invert the check result
180 enum nft_rule_compat_flags
{
181 NFT_RULE_COMPAT_F_INV
= (1 << 1),
182 NFT_RULE_COMPAT_F_MASK
= NFT_RULE_COMPAT_F_INV
,
186 * enum nft_rule_compat_attributes - nf_tables rule compat attributes
188 * @NFTA_RULE_COMPAT_PROTO: numerice value of handled protocol (NLA_U32)
189 * @NFTA_RULE_COMPAT_FLAGS: bitmask of enum nft_rule_compat_flags (NLA_U32)
191 enum nft_rule_compat_attributes
{
192 NFTA_RULE_COMPAT_UNSPEC
,
193 NFTA_RULE_COMPAT_PROTO
,
194 NFTA_RULE_COMPAT_FLAGS
,
195 __NFTA_RULE_COMPAT_MAX
197 #define NFTA_RULE_COMPAT_MAX (__NFTA_RULE_COMPAT_MAX - 1)
200 * enum nft_set_flags - nf_tables set flags
202 * @NFT_SET_ANONYMOUS: name allocation, automatic cleanup on unlink
203 * @NFT_SET_CONSTANT: set contents may not change while bound
204 * @NFT_SET_INTERVAL: set contains intervals
205 * @NFT_SET_MAP: set is used as a dictionary
208 NFT_SET_ANONYMOUS
= 0x1,
209 NFT_SET_CONSTANT
= 0x2,
210 NFT_SET_INTERVAL
= 0x4,
215 * enum nft_set_policies - set selection policy
217 * @NFT_SET_POL_PERFORMANCE: prefer high performance over low memory use
218 * @NFT_SET_POL_MEMORY: prefer low memory use over high performance
220 enum nft_set_policies
{
221 NFT_SET_POL_PERFORMANCE
,
226 * enum nft_set_desc_attributes - set element description
228 * @NFTA_SET_DESC_SIZE: number of elements in set (NLA_U32)
230 enum nft_set_desc_attributes
{
231 NFTA_SET_DESC_UNSPEC
,
235 #define NFTA_SET_DESC_MAX (__NFTA_SET_DESC_MAX - 1)
238 * enum nft_set_attributes - nf_tables set netlink attributes
240 * @NFTA_SET_TABLE: table name (NLA_STRING)
241 * @NFTA_SET_NAME: set name (NLA_STRING)
242 * @NFTA_SET_FLAGS: bitmask of enum nft_set_flags (NLA_U32)
243 * @NFTA_SET_KEY_TYPE: key data type, informational purpose only (NLA_U32)
244 * @NFTA_SET_KEY_LEN: key data length (NLA_U32)
245 * @NFTA_SET_DATA_TYPE: mapping data type (NLA_U32)
246 * @NFTA_SET_DATA_LEN: mapping data length (NLA_U32)
247 * @NFTA_SET_POLICY: selection policy (NLA_U32)
248 * @NFTA_SET_DESC: set description (NLA_NESTED)
249 * @NFTA_SET_ID: uniquely identifies a set in a transaction (NLA_U32)
251 enum nft_set_attributes
{
265 #define NFTA_SET_MAX (__NFTA_SET_MAX - 1)
268 * enum nft_set_elem_flags - nf_tables set element flags
270 * @NFT_SET_ELEM_INTERVAL_END: element ends the previous interval
272 enum nft_set_elem_flags
{
273 NFT_SET_ELEM_INTERVAL_END
= 0x1,
277 * enum nft_set_elem_attributes - nf_tables set element netlink attributes
279 * @NFTA_SET_ELEM_KEY: key value (NLA_NESTED: nft_data)
280 * @NFTA_SET_ELEM_DATA: data value of mapping (NLA_NESTED: nft_data_attributes)
281 * @NFTA_SET_ELEM_FLAGS: bitmask of nft_set_elem_flags (NLA_U32)
283 enum nft_set_elem_attributes
{
284 NFTA_SET_ELEM_UNSPEC
,
290 #define NFTA_SET_ELEM_MAX (__NFTA_SET_ELEM_MAX - 1)
293 * enum nft_set_elem_list_attributes - nf_tables set element list netlink attributes
295 * @NFTA_SET_ELEM_LIST_TABLE: table of the set to be changed (NLA_STRING)
296 * @NFTA_SET_ELEM_LIST_SET: name of the set to be changed (NLA_STRING)
297 * @NFTA_SET_ELEM_LIST_ELEMENTS: list of set elements (NLA_NESTED: nft_set_elem_attributes)
298 * @NFTA_SET_ELEM_LIST_SET_ID: uniquely identifies a set in a transaction (NLA_U32)
300 enum nft_set_elem_list_attributes
{
301 NFTA_SET_ELEM_LIST_UNSPEC
,
302 NFTA_SET_ELEM_LIST_TABLE
,
303 NFTA_SET_ELEM_LIST_SET
,
304 NFTA_SET_ELEM_LIST_ELEMENTS
,
305 NFTA_SET_ELEM_LIST_SET_ID
,
306 __NFTA_SET_ELEM_LIST_MAX
308 #define NFTA_SET_ELEM_LIST_MAX (__NFTA_SET_ELEM_LIST_MAX - 1)
311 * enum nft_data_types - nf_tables data types
313 * @NFT_DATA_VALUE: generic data
314 * @NFT_DATA_VERDICT: netfilter verdict
316 * The type of data is usually determined by the kernel directly and is not
317 * explicitly specified by userspace. The only difference are sets, where
318 * userspace specifies the key and mapping data types.
320 * The values 0xffffff00-0xffffffff are reserved for internally used types.
321 * The remaining range can be freely used by userspace to encode types, all
322 * values are equivalent to NFT_DATA_VALUE.
324 enum nft_data_types
{
326 NFT_DATA_VERDICT
= 0xffffff00U
,
329 #define NFT_DATA_RESERVED_MASK 0xffffff00U
332 * enum nft_data_attributes - nf_tables data netlink attributes
334 * @NFTA_DATA_VALUE: generic data (NLA_BINARY)
335 * @NFTA_DATA_VERDICT: nf_tables verdict (NLA_NESTED: nft_verdict_attributes)
337 enum nft_data_attributes
{
343 #define NFTA_DATA_MAX (__NFTA_DATA_MAX - 1)
346 * enum nft_verdict_attributes - nf_tables verdict netlink attributes
348 * @NFTA_VERDICT_CODE: nf_tables verdict (NLA_U32: enum nft_verdicts)
349 * @NFTA_VERDICT_CHAIN: jump target chain name (NLA_STRING)
351 enum nft_verdict_attributes
{
357 #define NFTA_VERDICT_MAX (__NFTA_VERDICT_MAX - 1)
360 * enum nft_expr_attributes - nf_tables expression netlink attributes
362 * @NFTA_EXPR_NAME: name of the expression type (NLA_STRING)
363 * @NFTA_EXPR_DATA: type specific data (NLA_NESTED)
365 enum nft_expr_attributes
{
371 #define NFTA_EXPR_MAX (__NFTA_EXPR_MAX - 1)
374 * enum nft_immediate_attributes - nf_tables immediate expression netlink attributes
376 * @NFTA_IMMEDIATE_DREG: destination register to load data into (NLA_U32)
377 * @NFTA_IMMEDIATE_DATA: data to load (NLA_NESTED: nft_data_attributes)
379 enum nft_immediate_attributes
{
380 NFTA_IMMEDIATE_UNSPEC
,
385 #define NFTA_IMMEDIATE_MAX (__NFTA_IMMEDIATE_MAX - 1)
388 * enum nft_bitwise_attributes - nf_tables bitwise expression netlink attributes
390 * @NFTA_BITWISE_SREG: source register (NLA_U32: nft_registers)
391 * @NFTA_BITWISE_DREG: destination register (NLA_U32: nft_registers)
392 * @NFTA_BITWISE_LEN: length of operands (NLA_U32)
393 * @NFTA_BITWISE_MASK: mask value (NLA_NESTED: nft_data_attributes)
394 * @NFTA_BITWISE_XOR: xor value (NLA_NESTED: nft_data_attributes)
396 * The bitwise expression performs the following operation:
398 * dreg = (sreg & mask) ^ xor
400 * which allow to express all bitwise operations:
408 enum nft_bitwise_attributes
{
417 #define NFTA_BITWISE_MAX (__NFTA_BITWISE_MAX - 1)
420 * enum nft_byteorder_ops - nf_tables byteorder operators
422 * @NFT_BYTEORDER_NTOH: network to host operator
423 * @NFT_BYTEORDER_HTON: host to network opertaor
425 enum nft_byteorder_ops
{
431 * enum nft_byteorder_attributes - nf_tables byteorder expression netlink attributes
433 * @NFTA_BYTEORDER_SREG: source register (NLA_U32: nft_registers)
434 * @NFTA_BYTEORDER_DREG: destination register (NLA_U32: nft_registers)
435 * @NFTA_BYTEORDER_OP: operator (NLA_U32: enum nft_byteorder_ops)
436 * @NFTA_BYTEORDER_LEN: length of the data (NLA_U32)
437 * @NFTA_BYTEORDER_SIZE: data size in bytes (NLA_U32: 2 or 4)
439 enum nft_byteorder_attributes
{
440 NFTA_BYTEORDER_UNSPEC
,
448 #define NFTA_BYTEORDER_MAX (__NFTA_BYTEORDER_MAX - 1)
451 * enum nft_cmp_ops - nf_tables relational operator
454 * @NFT_CMP_NEQ: not equal
455 * @NFT_CMP_LT: less than
456 * @NFT_CMP_LTE: less than or equal to
457 * @NFT_CMP_GT: greater than
458 * @NFT_CMP_GTE: greater than or equal to
470 * enum nft_cmp_attributes - nf_tables cmp expression netlink attributes
472 * @NFTA_CMP_SREG: source register of data to compare (NLA_U32: nft_registers)
473 * @NFTA_CMP_OP: cmp operation (NLA_U32: nft_cmp_ops)
474 * @NFTA_CMP_DATA: data to compare against (NLA_NESTED: nft_data_attributes)
476 enum nft_cmp_attributes
{
483 #define NFTA_CMP_MAX (__NFTA_CMP_MAX - 1)
486 * enum nft_lookup_attributes - nf_tables set lookup expression netlink attributes
488 * @NFTA_LOOKUP_SET: name of the set where to look for (NLA_STRING)
489 * @NFTA_LOOKUP_SREG: source register of the data to look for (NLA_U32: nft_registers)
490 * @NFTA_LOOKUP_DREG: destination register (NLA_U32: nft_registers)
491 * @NFTA_LOOKUP_SET_ID: uniquely identifies a set in a transaction (NLA_U32)
493 enum nft_lookup_attributes
{
501 #define NFTA_LOOKUP_MAX (__NFTA_LOOKUP_MAX - 1)
504 * enum nft_payload_bases - nf_tables payload expression offset bases
506 * @NFT_PAYLOAD_LL_HEADER: link layer header
507 * @NFT_PAYLOAD_NETWORK_HEADER: network header
508 * @NFT_PAYLOAD_TRANSPORT_HEADER: transport header
510 enum nft_payload_bases
{
511 NFT_PAYLOAD_LL_HEADER
,
512 NFT_PAYLOAD_NETWORK_HEADER
,
513 NFT_PAYLOAD_TRANSPORT_HEADER
,
517 * enum nft_payload_attributes - nf_tables payload expression netlink attributes
519 * @NFTA_PAYLOAD_DREG: destination register to load data into (NLA_U32: nft_registers)
520 * @NFTA_PAYLOAD_BASE: payload base (NLA_U32: nft_payload_bases)
521 * @NFTA_PAYLOAD_OFFSET: payload offset relative to base (NLA_U32)
522 * @NFTA_PAYLOAD_LEN: payload length (NLA_U32)
524 enum nft_payload_attributes
{
532 #define NFTA_PAYLOAD_MAX (__NFTA_PAYLOAD_MAX - 1)
535 * enum nft_exthdr_attributes - nf_tables IPv6 extension header expression netlink attributes
537 * @NFTA_EXTHDR_DREG: destination register (NLA_U32: nft_registers)
538 * @NFTA_EXTHDR_TYPE: extension header type (NLA_U8)
539 * @NFTA_EXTHDR_OFFSET: extension header offset (NLA_U32)
540 * @NFTA_EXTHDR_LEN: extension header length (NLA_U32)
542 enum nft_exthdr_attributes
{
550 #define NFTA_EXTHDR_MAX (__NFTA_EXTHDR_MAX - 1)
553 * enum nft_meta_keys - nf_tables meta expression keys
555 * @NFT_META_LEN: packet length (skb->len)
556 * @NFT_META_PROTOCOL: packet ethertype protocol (skb->protocol), invalid in OUTPUT
557 * @NFT_META_PRIORITY: packet priority (skb->priority)
558 * @NFT_META_MARK: packet mark (skb->mark)
559 * @NFT_META_IIF: packet input interface index (dev->ifindex)
560 * @NFT_META_OIF: packet output interface index (dev->ifindex)
561 * @NFT_META_IIFNAME: packet input interface name (dev->name)
562 * @NFT_META_OIFNAME: packet output interface name (dev->name)
563 * @NFT_META_IIFTYPE: packet input interface type (dev->type)
564 * @NFT_META_OIFTYPE: packet output interface type (dev->type)
565 * @NFT_META_SKUID: originating socket UID (fsuid)
566 * @NFT_META_SKGID: originating socket GID (fsgid)
567 * @NFT_META_NFTRACE: packet nftrace bit
568 * @NFT_META_RTCLASSID: realm value of packet's route (skb->dst->tclassid)
569 * @NFT_META_SECMARK: packet secmark (skb->secmark)
570 * @NFT_META_NFPROTO: netfilter protocol
571 * @NFT_META_L4PROTO: layer 4 protocol number
572 * @NFT_META_BRI_IIFNAME: packet input bridge interface name
573 * @NFT_META_BRI_OIFNAME: packet output bridge interface name
574 * @NFT_META_PKTTYPE: packet type (skb->pkt_type), special handling for loopback
575 * @NFT_META_CPU: cpu id through smp_processor_id()
576 * @NFT_META_IIFGROUP: packet input interface group
577 * @NFT_META_OIFGROUP: packet output interface group
597 NFT_META_BRI_IIFNAME
,
598 NFT_META_BRI_OIFNAME
,
606 * enum nft_meta_attributes - nf_tables meta expression netlink attributes
608 * @NFTA_META_DREG: destination register (NLA_U32)
609 * @NFTA_META_KEY: meta data item to load (NLA_U32: nft_meta_keys)
610 * @NFTA_META_SREG: source register (NLA_U32)
612 enum nft_meta_attributes
{
619 #define NFTA_META_MAX (__NFTA_META_MAX - 1)
622 * enum nft_ct_keys - nf_tables ct expression keys
624 * @NFT_CT_STATE: conntrack state (bitmask of enum ip_conntrack_info)
625 * @NFT_CT_DIRECTION: conntrack direction (enum ip_conntrack_dir)
626 * @NFT_CT_STATUS: conntrack status (bitmask of enum ip_conntrack_status)
627 * @NFT_CT_MARK: conntrack mark value
628 * @NFT_CT_SECMARK: conntrack secmark value
629 * @NFT_CT_EXPIRATION: relative conntrack expiration time in ms
630 * @NFT_CT_HELPER: connection tracking helper assigned to conntrack
631 * @NFT_CT_L3PROTOCOL: conntrack layer 3 protocol
632 * @NFT_CT_SRC: conntrack layer 3 protocol source (IPv4/IPv6 address)
633 * @NFT_CT_DST: conntrack layer 3 protocol destination (IPv4/IPv6 address)
634 * @NFT_CT_PROTOCOL: conntrack layer 4 protocol
635 * @NFT_CT_PROTO_SRC: conntrack layer 4 protocol source
636 * @NFT_CT_PROTO_DST: conntrack layer 4 protocol destination
656 * enum nft_ct_attributes - nf_tables ct expression netlink attributes
658 * @NFTA_CT_DREG: destination register (NLA_U32)
659 * @NFTA_CT_KEY: conntrack data item to load (NLA_U32: nft_ct_keys)
660 * @NFTA_CT_DIRECTION: direction in case of directional keys (NLA_U8)
661 * @NFTA_CT_SREG: source register (NLA_U32)
663 enum nft_ct_attributes
{
671 #define NFTA_CT_MAX (__NFTA_CT_MAX - 1)
674 * enum nft_limit_attributes - nf_tables limit expression netlink attributes
676 * @NFTA_LIMIT_RATE: refill rate (NLA_U64)
677 * @NFTA_LIMIT_UNIT: refill unit (NLA_U64)
679 enum nft_limit_attributes
{
685 #define NFTA_LIMIT_MAX (__NFTA_LIMIT_MAX - 1)
688 * enum nft_counter_attributes - nf_tables counter expression netlink attributes
690 * @NFTA_COUNTER_BYTES: number of bytes (NLA_U64)
691 * @NFTA_COUNTER_PACKETS: number of packets (NLA_U64)
693 enum nft_counter_attributes
{
696 NFTA_COUNTER_PACKETS
,
699 #define NFTA_COUNTER_MAX (__NFTA_COUNTER_MAX - 1)
702 * enum nft_log_attributes - nf_tables log expression netlink attributes
704 * @NFTA_LOG_GROUP: netlink group to send messages to (NLA_U32)
705 * @NFTA_LOG_PREFIX: prefix to prepend to log messages (NLA_STRING)
706 * @NFTA_LOG_SNAPLEN: length of payload to include in netlink message (NLA_U32)
707 * @NFTA_LOG_QTHRESHOLD: queue threshold (NLA_U32)
708 * @NFTA_LOG_LEVEL: log level (NLA_U32)
709 * @NFTA_LOG_FLAGS: logging flags (NLA_U32)
711 enum nft_log_attributes
{
721 #define NFTA_LOG_MAX (__NFTA_LOG_MAX - 1)
724 * enum nft_queue_attributes - nf_tables queue expression netlink attributes
726 * @NFTA_QUEUE_NUM: netlink queue to send messages to (NLA_U16)
727 * @NFTA_QUEUE_TOTAL: number of queues to load balance packets on (NLA_U16)
728 * @NFTA_QUEUE_FLAGS: various flags (NLA_U16)
730 enum nft_queue_attributes
{
737 #define NFTA_QUEUE_MAX (__NFTA_QUEUE_MAX - 1)
739 #define NFT_QUEUE_FLAG_BYPASS 0x01 /* for compatibility with v2 */
740 #define NFT_QUEUE_FLAG_CPU_FANOUT 0x02 /* use current CPU (no hashing) */
741 #define NFT_QUEUE_FLAG_MASK 0x03
744 * enum nft_reject_types - nf_tables reject expression reject types
746 * @NFT_REJECT_ICMP_UNREACH: reject using ICMP unreachable
747 * @NFT_REJECT_TCP_RST: reject using TCP RST
749 enum nft_reject_types
{
750 NFT_REJECT_ICMP_UNREACH
,
755 * enum nft_reject_attributes - nf_tables reject expression netlink attributes
757 * @NFTA_REJECT_TYPE: packet type to use (NLA_U32: nft_reject_types)
758 * @NFTA_REJECT_ICMP_CODE: ICMP code to use (NLA_U8)
760 enum nft_reject_attributes
{
763 NFTA_REJECT_ICMP_CODE
,
766 #define NFTA_REJECT_MAX (__NFTA_REJECT_MAX - 1)
769 * enum nft_nat_types - nf_tables nat expression NAT types
771 * @NFT_NAT_SNAT: source NAT
772 * @NFT_NAT_DNAT: destination NAT
780 * enum nft_nat_attributes - nf_tables nat expression netlink attributes
782 * @NFTA_NAT_TYPE: NAT type (NLA_U32: nft_nat_types)
783 * @NFTA_NAT_FAMILY: NAT family (NLA_U32)
784 * @NFTA_NAT_REG_ADDR_MIN: source register of address range start (NLA_U32: nft_registers)
785 * @NFTA_NAT_REG_ADDR_MAX: source register of address range end (NLA_U32: nft_registers)
786 * @NFTA_NAT_REG_PROTO_MIN: source register of proto range start (NLA_U32: nft_registers)
787 * @NFTA_NAT_REG_PROTO_MAX: source register of proto range end (NLA_U32: nft_registers)
789 enum nft_nat_attributes
{
793 NFTA_NAT_REG_ADDR_MIN
,
794 NFTA_NAT_REG_ADDR_MAX
,
795 NFTA_NAT_REG_PROTO_MIN
,
796 NFTA_NAT_REG_PROTO_MAX
,
799 #define NFTA_NAT_MAX (__NFTA_NAT_MAX - 1)
801 #endif /* _LINUX_NF_TABLES_H */