summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSven Schnelle <svens@bitebene.org>2008-01-20 13:45:16 +0000
committerPatrick McHardy <kaber@trash.net>2008-01-20 13:45:16 +0000
commitaef4c1e7275633e4650d16440faaf4cb7163ac0e (patch)
tree9ef00f3a2aec50521ce3a284ea25576786119e81 /include
parentfc11b0b24ca2f808adcca3fd6b1aad581538171d (diff)
libxt_TCPOPTSTRIP
Import libxt_TCPOPTSTRIP into iptables. Signed-off-by: Sven Schnelle <svens@bitebene.org> Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>
Diffstat (limited to 'include')
-rw-r--r--include/linux/netfilter/xt_TCPOPTSTRIP.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/netfilter/xt_TCPOPTSTRIP.h b/include/linux/netfilter/xt_TCPOPTSTRIP.h
new file mode 100644
index 00000000..2db54321
--- /dev/null
+++ b/include/linux/netfilter/xt_TCPOPTSTRIP.h
@@ -0,0 +1,13 @@
+#ifndef _XT_TCPOPTSTRIP_H
+#define _XT_TCPOPTSTRIP_H
+
+#define tcpoptstrip_set_bit(bmap, idx) \
+ (bmap[(idx) >> 5] |= 1U << (idx & 31))
+#define tcpoptstrip_test_bit(bmap, idx) \
+ (((1U << (idx & 31)) & bmap[(idx) >> 5]) != 0)
+
+struct xt_tcpoptstrip_target_info {
+ u_int32_t strip_bmap[8];
+};
+
+#endif /* _XT_TCPOPTSTRIP_H */