mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 10:29:37 +00:00
![KOVACS Krisztian](/assets/img/avatar_default.png)
The TPROXY target implements redirection of non-local TCP/UDP traffic to local sockets. Additionally, it's possible to manipulate the packet mark if and only if a socket has been found. (We need this because we cannot use multiple targets in the same iptables rule.) Signed-off-by: KOVACS Krisztian <hidden@sch.bme.hu> Signed-off-by: Patrick McHardy <kaber@trash.net>
14 lines
369 B
C
14 lines
369 B
C
#ifndef _XT_TPROXY_H_target
|
|
#define _XT_TPROXY_H_target
|
|
|
|
/* TPROXY target is capable of marking the packet to perform
|
|
* redirection. We can get rid of that whenever we get support for
|
|
* mutliple targets in the same rule. */
|
|
struct xt_tproxy_target_info {
|
|
u_int32_t mark_mask;
|
|
u_int32_t mark_value;
|
|
__be32 laddr;
|
|
__be16 lport;
|
|
};
|
|
|
|
#endif /* _XT_TPROXY_H_target */
|