]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
Build dccp match unconditionally
authorPatrick McHardy <kaber@trash.net>
Wed, 5 Sep 2007 13:48:50 +0000 (13:48 +0000)
committerPatrick McHardy <kaber@trash.net>
Wed, 5 Sep 2007 13:48:50 +0000 (13:48 +0000)
extensions/.dccp-testx [deleted file]
extensions/Makefile
include/linux/netfilter/xt_dccp.h [new file with mode: 0644]

diff --git a/extensions/.dccp-testx b/extensions/.dccp-testx
deleted file mode 100755 (executable)
index a5ad74e..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-# True if dccp is applied.
-[ -f $KERNEL_DIR/include/linux/netfilter/xt_dccp.h ] && echo dccp
index 63f8accd2be890db88281381e925f08caa886310..5bea5623c950d2c14feaffc0ea47a662134504fd 100644 (file)
@@ -7,7 +7,7 @@
 #
 PF_EXT_SLIB:=ah addrtype conntrack ecn icmp iprange owner policy realm tos ttl unclean DNAT ECN LOG MASQUERADE MIRROR NETMAP REDIRECT REJECT SAME SNAT TOS TTL ULOG
 PF6_EXT_SLIB:=eui64 hl icmp6 owner policy HL LOG
-PFX_EXT_SLIB:=connbytes connmark connlimit comment dscp esp hashlimit helper length limit mac mark multiport physdev pkttype quota sctp state statistic standard string tcp tcpmss udp CLASSIFY CONNMARK DSCP MARK NFLOG NFQUEUE NOTRACK TCPMSS TRACE
+PFX_EXT_SLIB:=connbytes connmark connlimit comment dccp dscp esp hashlimit helper length limit mac mark multiport physdev pkttype quota sctp state statistic standard string tcp tcpmss udp CLASSIFY CONNMARK DSCP MARK NFLOG NFQUEUE NOTRACK TCPMSS TRACE
 
 ifeq ($(DO_SELINUX), 1)
 PF_EXT_SE_SLIB:=
diff --git a/include/linux/netfilter/xt_dccp.h b/include/linux/netfilter/xt_dccp.h
new file mode 100644 (file)
index 0000000..e0221b9
--- /dev/null
@@ -0,0 +1,23 @@
+#ifndef _XT_DCCP_H_
+#define _XT_DCCP_H_
+
+#define XT_DCCP_SRC_PORTS              0x01
+#define XT_DCCP_DEST_PORTS             0x02
+#define XT_DCCP_TYPE                   0x04
+#define XT_DCCP_OPTION                 0x08
+
+#define XT_DCCP_VALID_FLAGS            0x0f
+
+struct xt_dccp_info {
+       u_int16_t dpts[2];  /* Min, Max */
+       u_int16_t spts[2];  /* Min, Max */
+
+       u_int16_t flags;
+       u_int16_t invflags;
+
+       u_int16_t typemask;
+       u_int8_t option;
+};
+
+#endif /* _XT_DCCP_H_ */
+