blob: 348957b02a8248ebc21c82144d8bb70750103a60 [file] [log] [blame]
Christopher Ferris25981132017-11-14 16:53:49 -08001/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
Ben Cheng30692c62013-10-15 18:26:18 -07002#ifndef _XT_TPROXY_H
3#define _XT_TPROXY_H
4
5#include <linux/types.h>
Christopher Ferrisccfaccd2016-08-24 12:11:31 -07006#include <linux/netfilter.h>
Ben Cheng30692c62013-10-15 18:26:18 -07007
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 */