1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2#ifndef _XT_TPROXY_H
3#define _XT_TPROXY_H
4
5#include <linux/types.h>
6#include <linux/netfilter.h>
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. */
11struct xt_tproxy_target_info {
12	__u32 mark_mask;
13	__u32 mark_value;
14	__be32 laddr;
15	__be16 lport;
16};
17
18struct 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 */
26