Christopher Ferris | 2598113 | 2017-11-14 16:53:49 -0800 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ |
Ben Cheng | 30692c6 | 2013-10-15 18:26:18 -0700 | [diff] [blame] | 2 | #ifndef _XT_TPROXY_H |
| 3 | #define _XT_TPROXY_H |
| 4 | |
| 5 | #include <linux/types.h> |
Christopher Ferris | ccfaccd | 2016-08-24 12:11:31 -0700 | [diff] [blame] | 6 | #include <linux/netfilter.h> |
Ben Cheng | 30692c6 | 2013-10-15 18:26:18 -0700 | [diff] [blame] | 7 | |
| 8 | /* TPROXY target is capable of marking the packet to perform |
| 9 | * redirection. We can get rid of that whenever we get support for |
| 10 | * mutliple targets in the same rule. */ |
| 11 | struct xt_tproxy_target_info { |
| 12 | __u32 mark_mask; |
| 13 | __u32 mark_value; |
| 14 | __be32 laddr; |
| 15 | __be16 lport; |
| 16 | }; |
| 17 | |
| 18 | struct xt_tproxy_target_info_v1 { |
| 19 | __u32 mark_mask; |
| 20 | __u32 mark_value; |
| 21 | union nf_inet_addr laddr; |
| 22 | __be16 lport; |
| 23 | }; |
| 24 | |
| 25 | #endif /* _XT_TPROXY_H */ |