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

diff --git a/extensions/.quota-testx b/extensions/.quota-testx
deleted file mode 100755 (executable)
index b21058c..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-[ -f $KERNEL_DIR/include/linux/netfilter/xt_quota.h ] && echo quota
-
index f1d2f1a0cf7f6ee036b168773e895975a6c81226..69116546beb97b2f9db6fcdf5b490cc6945e0db9 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:=connmark connlimit comment dscp esp hashlimit helper length limit mac mark multiport physdev pkttype sctp state standard tcp tcpmss udp CLASSIFY CONNMARK DSCP MARK NFLOG NFQUEUE NOTRACK TCPMSS TRACE
+PFX_EXT_SLIB:=connmark connlimit comment dscp esp hashlimit helper length limit mac mark multiport physdev pkttype quota sctp state standard 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_quota.h b/include/linux/netfilter/xt_quota.h
new file mode 100644 (file)
index 0000000..acd7fd7
--- /dev/null
@@ -0,0 +1,16 @@
+#ifndef _XT_QUOTA_H
+#define _XT_QUOTA_H
+
+enum xt_quota_flags {
+       XT_QUOTA_INVERT         = 0x1,
+};
+#define XT_QUOTA_MASK          0x1
+
+struct xt_quota_info {
+       u_int32_t               flags;
+       u_int32_t               pad;
+       aligned_u64             quota;
+       struct xt_quota_info    *master;
+};
+
+#endif /* _XT_QUOTA_H */