Changeset f331216 in freewrt
- Timestamp:
- Jul 9, 2007, 12:09:55 AM (18 years ago)
- Children:
- 8403ab8
- Parents:
- a3fb132
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
target/linux/generic-2.4/patches/612-netfilter_quota.patch
ra3fb132 rf331216 1 diff - ruN linux-2.4.30-old/Documentation/Configure.help linux-2.4.30-new/Documentation/Configure.help2 --- linux-2.4.3 0-old/Documentation/Configure.help 2005-11-13 22:30:42.000000000 +01003 +++ linux-2.4.3 0-new/Documentation/Configure.help 2005-11-13 22:31:17.000000000 +01004 @@ -2888,6 +2888,13 @@ 1 diff -Naurp linux-2.4.34/Documentation/Configure.help linux-2.4.34.patched/Documentation/Configure.help 2 --- linux-2.4.34/Documentation/Configure.help 2007-07-08 23:33:27.000000000 +0200 3 +++ linux-2.4.34.patched/Documentation/Configure.help 2007-07-08 23:37:15.000000000 +0200 4 @@ -2888,6 +2888,13 @@ CONFIG_IP_NF_MATCH_LIMIT 5 5 If you want to compile it as a module, say M here and read 6 6 <file:Documentation/modules.txt>. If unsure, say `N'. … … 16 16 CONFIG_IP_NF_MATCH_PKTTYPE 17 17 This patch allows you to match packet in accrodance 18 diff - ruN linux-2.4.30-old/include/linux/netfilter_ipv4/ipt_quota.h linux-2.4.30-new/include/linux/netfilter_ipv4/ipt_quota.h19 --- linux-2.4.3 0-old/include/linux/netfilter_ipv4/ipt_quota.h 1970-01-01 01:00:00.000000000 +010020 +++ linux-2.4.3 0-new/include/linux/netfilter_ipv4/ipt_quota.h 2005-11-13 22:31:17.000000000 +010018 diff -Naurp linux-2.4.34/include/linux/netfilter_ipv4/ipt_quota.h linux-2.4.34.patched/include/linux/netfilter_ipv4/ipt_quota.h 19 --- linux-2.4.34/include/linux/netfilter_ipv4/ipt_quota.h 1970-01-01 01:00:00.000000000 +0100 20 +++ linux-2.4.34.patched/include/linux/netfilter_ipv4/ipt_quota.h 2007-07-08 23:37:15.000000000 +0200 21 21 @@ -0,0 +1,12 @@ 22 22 +#ifndef _IPT_QUOTA_H … … 32 32 + 33 33 +#endif /*_IPT_QUOTA_H*/ 34 diff - ruN linux-2.4.30-old/net/ipv4/netfilter/Config.in linux-2.4.30-new/net/ipv4/netfilter/Config.in35 --- linux-2.4.3 0-old/net/ipv4/netfilter/Config.in 2005-11-13 22:30:42.000000000 +010036 +++ linux-2.4.3 0-new/net/ipv4/netfilter/Config.in 2005-11-13 22:31:17.000000000 +010037 @@ -24,6 +24,7 @@ 34 diff -Naurp linux-2.4.34/net/ipv4/netfilter/Config.in linux-2.4.34.patched/net/ipv4/netfilter/Config.in 35 --- linux-2.4.34/net/ipv4/netfilter/Config.in 2007-07-08 23:33:27.000000000 +0200 36 +++ linux-2.4.34.patched/net/ipv4/netfilter/Config.in 2007-07-08 23:38:03.000000000 +0200 37 @@ -24,6 +24,7 @@ tristate 'IP tables support (required fo 38 38 if [ "$CONFIG_IP_NF_IPTABLES" != "n" ]; then 39 39 # The simple matches. 40 40 dep_tristate ' limit match support' CONFIG_IP_NF_MATCH_LIMIT $CONFIG_IP_NF_IPTABLES 41 41 + dep_tristate ' quota match support' CONFIG_IP_NF_MATCH_QUOTA $CONFIG_IP_NF_IPTABLES 42 43 dep_tristate ' IP set support' CONFIG_IP_NF_SET $CONFIG_IP_NF_IPTABLES 44 if [ "$CONFIG_IP_NF_SET" != "n" ]; then 45 diff -ruN linux-2.4.30-old/net/ipv4/netfilter/Makefile linux-2.4.30-new/net/ipv4/netfilter/Makefile 46 --- linux-2.4.30-old/net/ipv4/netfilter/Makefile 2005-11-13 22:30:42.000000000 +0100 47 +++ linux-2.4.30-new/net/ipv4/netfilter/Makefile 2005-11-13 22:31:17.000000000 +0100 48 @@ -74,6 +74,7 @@ 49 # matches 50 obj-$(CONFIG_IP_NF_MATCH_HELPER) += ipt_helper.o 51 obj-$(CONFIG_IP_NF_MATCH_LIMIT) += ipt_limit.o 52 +obj-$(CONFIG_IP_NF_MATCH_QUOTA) += ipt_quota.o 53 obj-$(CONFIG_IP_NF_MATCH_MARK) += ipt_mark.o 54 obj-$(CONFIG_IP_NF_MATCH_SET) += ipt_set.o 55 obj-$(CONFIG_IP_NF_TARGET_SET) += ipt_SET.o 56 diff -ruN linux-2.4.30-old/net/ipv4/netfilter/ipt_quota.c linux-2.4.30-new/net/ipv4/netfilter/ipt_quota.c 57 --- linux-2.4.30-old/net/ipv4/netfilter/ipt_quota.c 1970-01-01 01:00:00.000000000 +0100 58 +++ linux-2.4.30-new/net/ipv4/netfilter/ipt_quota.c 2005-11-13 22:31:17.000000000 +0100 42 dep_tristate ' MAC address match support' CONFIG_IP_NF_MATCH_MAC $CONFIG_IP_NF_IPTABLES 43 dep_tristate ' Packet type match support' CONFIG_IP_NF_MATCH_PKTTYPE $CONFIG_IP_NF_IPTABLES 44 dep_tristate ' netfilter MARK match support' CONFIG_IP_NF_MATCH_MARK $CONFIG_IP_NF_IPTABLES 45 diff -Naurp linux-2.4.34/net/ipv4/netfilter/ipt_quota.c linux-2.4.34.patched/net/ipv4/netfilter/ipt_quota.c 46 --- linux-2.4.34/net/ipv4/netfilter/ipt_quota.c 1970-01-01 01:00:00.000000000 +0100 47 +++ linux-2.4.34.patched/net/ipv4/netfilter/ipt_quota.c 2007-07-08 23:37:15.000000000 +0200 59 48 @@ -0,0 +1,88 @@ 60 49 +/* … … 146 135 +module_exit(fini); 147 136 + 137 diff -Naurp linux-2.4.34/net/ipv4/netfilter/Makefile linux-2.4.34.patched/net/ipv4/netfilter/Makefile 138 --- linux-2.4.34/net/ipv4/netfilter/Makefile 2007-07-08 23:33:27.000000000 +0200 139 +++ linux-2.4.34.patched/net/ipv4/netfilter/Makefile 2007-07-08 23:37:15.000000000 +0200 140 @@ -74,6 +74,7 @@ obj-$(CONFIG_IP_NF_NAT) += iptable_nat.o 141 # matches 142 obj-$(CONFIG_IP_NF_MATCH_HELPER) += ipt_helper.o 143 obj-$(CONFIG_IP_NF_MATCH_LIMIT) += ipt_limit.o 144 +obj-$(CONFIG_IP_NF_MATCH_QUOTA) += ipt_quota.o 145 obj-$(CONFIG_IP_NF_MATCH_MARK) += ipt_mark.o 146 obj-$(CONFIG_IP_NF_MATCH_MAC) += ipt_mac.o 147 obj-$(CONFIG_IP_NF_MATCH_IPP2P) += ipt_ipp2p.o
Note:
See TracChangeset
for help on using the changeset viewer.
