• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * This header was generated from the Linux kernel headers by update_headers.py,
3  * to provide necessary information from kernel to userspace, such as constants,
4  * structures, and macros, and thus, contains no copyrightable information.
5  */
6 #ifndef __LINUX_TC_NAT_H
7 #define __LINUX_TC_NAT_H
8 #include <linux/pkt_cls.h>
9 #include <linux/types.h>
10 #define TCA_ACT_NAT 9
11 enum {
12 	TCA_NAT_UNSPEC,
13 	TCA_NAT_PARMS,
14 	TCA_NAT_TM,
15 	TCA_NAT_PAD,
16 	__TCA_NAT_MAX
17 };
18 #define TCA_NAT_MAX (__TCA_NAT_MAX - 1)
19 #define TCA_NAT_FLAG_EGRESS 1
20 struct tc_nat {
21 	tc_gen;
22 	__be32 old_addr;
23 	__be32 new_addr;
24 	__be32 mask;
25 	__u32 flags;
26 };
27 #endif
28