summaryrefslogtreecommitdiffstats
path: root/include/linux/netfilter
diff options
context:
space:
mode:
authorJan Engelhardt2010-04-19 14:17:47 +0200
committerPatrick McHardy2010-04-19 14:17:47 +0200
commite281b19897dc21c1071802808d461627d747a877 (patch)
treee779b58643237f00305b016d6749825d7b3426f8 /include/linux/netfilter
parentnetfilter: ipt_LOG/ip6t_LOG: use more appropriate log level as default (diff)
downloadkernel-qcow2-linux-e281b19897dc21c1071802808d461627d747a877.tar.gz
kernel-qcow2-linux-e281b19897dc21c1071802808d461627d747a877.tar.xz
kernel-qcow2-linux-e281b19897dc21c1071802808d461627d747a877.zip
netfilter: xtables: inclusion of xt_TEE
xt_TEE can be used to clone and reroute a packet. This can for example be used to copy traffic at a router for logging purposes to another dedicated machine. References: http://www.gossamer-threads.com/lists/iptables/devel/68781 Signed-off-by: Jan Engelhardt <jengelh@medozas.de> Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include/linux/netfilter')
-rw-r--r--include/linux/netfilter/Kbuild1
-rw-r--r--include/linux/netfilter/xt_TEE.h9
2 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/netfilter/Kbuild b/include/linux/netfilter/Kbuild
index a5a63e41b8af..48767cd16453 100644
--- a/include/linux/netfilter/Kbuild
+++ b/include/linux/netfilter/Kbuild
@@ -16,6 +16,7 @@ header-y += xt_RATEEST.h
header-y += xt_SECMARK.h
header-y += xt_TCPMSS.h
header-y += xt_TCPOPTSTRIP.h
+header-y += xt_TEE.h
header-y += xt_TPROXY.h
header-y += xt_comment.h
header-y += xt_connbytes.h
diff --git a/include/linux/netfilter/xt_TEE.h b/include/linux/netfilter/xt_TEE.h
new file mode 100644
index 000000000000..55d4a5011523
--- /dev/null
+++ b/include/linux/netfilter/xt_TEE.h
@@ -0,0 +1,9 @@
+#ifndef _XT_TEE_TARGET_H
+#define _XT_TEE_TARGET_H
+
+struct xt_tee_tginfo {
+ union nf_inet_addr gw;
+ char oif[16];
+};
+
+#endif /* _XT_TEE_TARGET_H */