Herbert Xu | b421995 | 2007-09-27 12:48:05 -0700 | [diff] [blame] | 1 | #ifndef __NET_TC_NAT_H |
| 2 | #define __NET_TC_NAT_H |
| 3 | |
| 4 | #include <linux/types.h> |
| 5 | #include <net/act_api.h> |
| 6 | |
| 7 | struct tcf_nat { |
WANG Cong | ec0595c | 2016-07-25 16:09:42 -0700 | [diff] [blame] | 8 | struct tc_action common; |
Herbert Xu | b421995 | 2007-09-27 12:48:05 -0700 | [diff] [blame] | 9 | |
| 10 | __be32 old_addr; |
| 11 | __be32 new_addr; |
| 12 | __be32 mask; |
| 13 | u32 flags; |
| 14 | }; |
| 15 | |
WANG Cong | a85a970 | 2016-07-25 16:09:41 -0700 | [diff] [blame] | 16 | #define to_tcf_nat(a) ((struct tcf_nat *)a) |
Herbert Xu | b421995 | 2007-09-27 12:48:05 -0700 | [diff] [blame] | 17 | |
| 18 | #endif /* __NET_TC_NAT_H */ |