X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/90fba37c49479ed4e5233dc0d348cdf7d24c9ee1..b1bc178db99940d0dd48f330bcfbfbe1a976b749:/target/linux/generic-2.4/patches/616-netfilter_imq.patch diff --git a/target/linux/generic-2.4/patches/616-netfilter_imq.patch b/target/linux/generic-2.4/patches/616-netfilter_imq.patch index 4df115017..45f4d9d24 100644 --- a/target/linux/generic-2.4/patches/616-netfilter_imq.patch +++ b/target/linux/generic-2.4/patches/616-netfilter_imq.patch @@ -1,8 +1,6 @@ -Index: linux-2.4.35.4/Documentation/Configure.help -=================================================================== ---- linux-2.4.35.4.orig/Documentation/Configure.help 2007-12-15 05:20:09.632389161 +0100 -+++ linux-2.4.35.4/Documentation/Configure.help 2007-12-15 05:20:10.792455269 +0100 -@@ -3160,6 +3160,22 @@ +--- a/Documentation/Configure.help ++++ b/Documentation/Configure.help +@@ -3160,6 +3160,22 @@ CONFIG_IP_NF_TARGET_TOS If you want to compile it as a module, say M here and read . If unsure, say `N'. @@ -25,7 +23,7 @@ Index: linux-2.4.35.4/Documentation/Configure.help MARK target support CONFIG_IP_NF_TARGET_MARK This option adds a `MARK' target, which allows you to create rules -@@ -9919,6 +9935,20 @@ +@@ -9931,6 +9947,20 @@ CONFIG_BONDING say M here and read . The module will be called bonding.o. @@ -46,11 +44,9 @@ Index: linux-2.4.35.4/Documentation/Configure.help SLIP (serial line) support CONFIG_SLIP Say Y if you intend to use SLIP or CSLIP (compressed SLIP) to -Index: linux-2.4.35.4/drivers/net/Config.in -=================================================================== ---- linux-2.4.35.4.orig/drivers/net/Config.in 2007-12-15 05:19:54.067502171 +0100 -+++ linux-2.4.35.4/drivers/net/Config.in 2007-12-15 05:20:10.796455498 +0100 -@@ -7,6 +7,11 @@ +--- a/drivers/net/Config.in ++++ b/drivers/net/Config.in +@@ -7,6 +7,11 @@ source drivers/net/arcnet/Config.in tristate 'Dummy net driver support' CONFIG_DUMMY tristate 'Bonding driver support' CONFIG_BONDING tristate 'EQL (serial line load balancing) support' CONFIG_EQUALIZER @@ -62,11 +58,9 @@ Index: linux-2.4.35.4/drivers/net/Config.in tristate 'Universal TUN/TAP device driver support' CONFIG_TUN bool 'Allow Net Devices to contribute to /dev/random' CONFIG_NET_RANDOM if [ "$CONFIG_EXPERIMENTAL" = "y" ]; then -Index: linux-2.4.35.4/drivers/net/Makefile -=================================================================== ---- linux-2.4.35.4.orig/drivers/net/Makefile 2007-12-15 05:19:51.931380439 +0100 -+++ linux-2.4.35.4/drivers/net/Makefile 2007-12-15 05:20:10.804455954 +0100 -@@ -176,6 +176,7 @@ +--- a/drivers/net/Makefile ++++ b/drivers/net/Makefile +@@ -176,6 +176,7 @@ endif obj-$(CONFIG_STRIP) += strip.o obj-$(CONFIG_DUMMY) += dummy.o @@ -74,10 +68,8 @@ Index: linux-2.4.35.4/drivers/net/Makefile obj-$(CONFIG_DE600) += de600.o obj-$(CONFIG_DE620) += de620.o obj-$(CONFIG_AT1500) += lance.o -Index: linux-2.4.35.4/drivers/net/imq.c -=================================================================== ---- /dev/null 1970-01-01 00:00:00.000000000 +0000 -+++ linux-2.4.35.4/drivers/net/imq.c 2007-12-15 05:20:10.808456180 +0100 +--- /dev/null ++++ b/drivers/net/imq.c @@ -0,0 +1,321 @@ +/* + * Pseudo-driver for the intermediate queue device. @@ -400,10 +392,8 @@ Index: linux-2.4.35.4/drivers/net/imq.c +module_init(imq_init_module); +module_exit(imq_cleanup_module); +MODULE_LICENSE("GPL"); -Index: linux-2.4.35.4/include/linux/imq.h -=================================================================== ---- /dev/null 1970-01-01 00:00:00.000000000 +0000 -+++ linux-2.4.35.4/include/linux/imq.h 2007-12-15 05:20:10.808456180 +0100 +--- /dev/null ++++ b/include/linux/imq.h @@ -0,0 +1,9 @@ +#ifndef _IMQ_H +#define _IMQ_H @@ -414,10 +404,8 @@ Index: linux-2.4.35.4/include/linux/imq.h +#define IMQ_F_ENQUEUE 0x80 + +#endif /* _IMQ_H */ -Index: linux-2.4.35.4/include/linux/netfilter_ipv4/ipt_IMQ.h -=================================================================== ---- /dev/null 1970-01-01 00:00:00.000000000 +0000 -+++ linux-2.4.35.4/include/linux/netfilter_ipv4/ipt_IMQ.h 2007-12-15 05:20:10.808456180 +0100 +--- /dev/null ++++ b/include/linux/netfilter_ipv4/ipt_IMQ.h @@ -0,0 +1,8 @@ +#ifndef _IPT_IMQ_H +#define _IPT_IMQ_H @@ -427,10 +415,8 @@ Index: linux-2.4.35.4/include/linux/netfilter_ipv4/ipt_IMQ.h +}; + +#endif /* _IPT_IMQ_H */ -Index: linux-2.4.35.4/include/linux/netfilter_ipv6/ip6t_IMQ.h -=================================================================== ---- /dev/null 1970-01-01 00:00:00.000000000 +0000 -+++ linux-2.4.35.4/include/linux/netfilter_ipv6/ip6t_IMQ.h 2007-12-15 05:20:10.808456180 +0100 +--- /dev/null ++++ b/include/linux/netfilter_ipv6/ip6t_IMQ.h @@ -0,0 +1,8 @@ +#ifndef _IP6T_IMQ_H +#define _IP6T_IMQ_H @@ -440,11 +426,9 @@ Index: linux-2.4.35.4/include/linux/netfilter_ipv6/ip6t_IMQ.h +}; + +#endif /* _IP6T_IMQ_H */ -Index: linux-2.4.35.4/include/linux/skbuff.h -=================================================================== ---- linux-2.4.35.4.orig/include/linux/skbuff.h 2007-12-15 05:20:05.060128604 +0100 -+++ linux-2.4.35.4/include/linux/skbuff.h 2007-12-15 05:20:10.808456180 +0100 -@@ -93,6 +93,9 @@ +--- a/include/linux/skbuff.h ++++ b/include/linux/skbuff.h +@@ -93,6 +93,9 @@ struct nf_ct_info { struct nf_conntrack *master; }; #endif @@ -454,7 +438,7 @@ Index: linux-2.4.35.4/include/linux/skbuff.h struct sk_buff_head { /* These two members must be first. */ -@@ -182,7 +185,7 @@ +@@ -182,7 +185,7 @@ struct sk_buff { unsigned int len; /* Length of actual data */ unsigned int data_len; unsigned int csum; /* Checksum */ @@ -463,7 +447,7 @@ Index: linux-2.4.35.4/include/linux/skbuff.h cloned, /* head may be cloned (check refcnt to be sure). */ pkt_type, /* Packet class */ ip_summed; /* Driver fed us an IP checksum */ -@@ -219,6 +222,9 @@ +@@ -219,6 +222,9 @@ struct sk_buff { #ifdef CONFIG_NET_SCHED __u32 tc_index; /* traffic control index */ #endif @@ -473,11 +457,9 @@ Index: linux-2.4.35.4/include/linux/skbuff.h }; #ifdef __KERNEL__ -Index: linux-2.4.35.4/net/core/skbuff.c -=================================================================== ---- linux-2.4.35.4.orig/net/core/skbuff.c 2007-12-15 05:19:37.174539496 +0100 -+++ linux-2.4.35.4/net/core/skbuff.c 2007-12-15 05:20:10.812456409 +0100 -@@ -202,6 +202,10 @@ +--- a/net/core/skbuff.c ++++ b/net/core/skbuff.c +@@ -202,6 +202,10 @@ struct sk_buff *alloc_skb(unsigned int s /* Set up other state */ skb->len = 0; skb->cloned = 0; @@ -488,7 +470,7 @@ Index: linux-2.4.35.4/net/core/skbuff.c skb->data_len = 0; atomic_set(&skb->users, 1); -@@ -250,6 +254,10 @@ +@@ -250,6 +254,10 @@ static inline void skb_headerinit(void * #ifdef CONFIG_NET_SCHED skb->tc_index = 0; #endif @@ -499,7 +481,7 @@ Index: linux-2.4.35.4/net/core/skbuff.c } static void skb_drop_fraglist(struct sk_buff *skb) -@@ -400,6 +408,10 @@ +@@ -400,6 +408,10 @@ struct sk_buff *skb_clone(struct sk_buff #ifdef CONFIG_NET_SCHED C(tc_index); #endif @@ -510,7 +492,7 @@ Index: linux-2.4.35.4/net/core/skbuff.c atomic_inc(&(skb_shinfo(skb)->dataref)); skb->cloned = 1; -@@ -444,6 +456,10 @@ +@@ -444,6 +456,10 @@ static void copy_skb_header(struct sk_bu #ifdef CONFIG_NET_SCHED new->tc_index = old->tc_index; #endif @@ -521,23 +503,19 @@ Index: linux-2.4.35.4/net/core/skbuff.c } /** -Index: linux-2.4.35.4/net/ipv4/netfilter/Config.in -=================================================================== ---- linux-2.4.35.4.orig/net/ipv4/netfilter/Config.in 2007-12-15 05:20:10.504438857 +0100 -+++ linux-2.4.35.4/net/ipv4/netfilter/Config.in 2007-12-15 05:20:10.812456409 +0100 -@@ -171,6 +171,7 @@ +--- a/net/ipv4/netfilter/Config.in ++++ b/net/ipv4/netfilter/Config.in +@@ -171,6 +171,7 @@ if [ "$CONFIG_IP_NF_IPTABLES" != "n" ]; dep_tristate ' DSCP target support' CONFIG_IP_NF_TARGET_DSCP $CONFIG_IP_NF_MANGLE dep_tristate ' MARK target support' CONFIG_IP_NF_TARGET_MARK $CONFIG_IP_NF_MANGLE + dep_tristate ' IMQ target support' CONFIG_IP_NF_TARGET_IMQ $CONFIG_IP_NF_MANGLE + dep_tristate ' CLASSIFY target support (EXPERIMENTAL)' CONFIG_IP_NF_TARGET_CLASSIFY $CONFIG_IP_NF_MANGLE fi if [ "$CONFIG_IP_NF_CONNTRACK_MARK" != "n" ]; then - dep_tristate ' CONNMARK target support' CONFIG_IP_NF_TARGET_CONNMARK $CONFIG_IP_NF_IPTABLES -Index: linux-2.4.35.4/net/ipv4/netfilter/Makefile -=================================================================== ---- linux-2.4.35.4.orig/net/ipv4/netfilter/Makefile 2007-12-15 05:20:10.508439083 +0100 -+++ linux-2.4.35.4/net/ipv4/netfilter/Makefile 2007-12-15 05:20:10.812456409 +0100 -@@ -138,6 +138,7 @@ +--- a/net/ipv4/netfilter/Makefile ++++ b/net/ipv4/netfilter/Makefile +@@ -139,6 +139,7 @@ obj-$(CONFIG_IP_NF_TARGET_TOS) += ipt_TO obj-$(CONFIG_IP_NF_TARGET_ECN) += ipt_ECN.o obj-$(CONFIG_IP_NF_TARGET_DSCP) += ipt_DSCP.o obj-$(CONFIG_IP_NF_TARGET_MARK) += ipt_MARK.o @@ -545,10 +523,8 @@ Index: linux-2.4.35.4/net/ipv4/netfilter/Makefile obj-$(CONFIG_IP_NF_TARGET_MASQUERADE) += ipt_MASQUERADE.o obj-$(CONFIG_IP_NF_TARGET_REDIRECT) += ipt_REDIRECT.o obj-$(CONFIG_IP_NF_TARGET_NETMAP) += ipt_NETMAP.o -Index: linux-2.4.35.4/net/ipv4/netfilter/ipt_IMQ.c -=================================================================== ---- /dev/null 1970-01-01 00:00:00.000000000 +0000 -+++ linux-2.4.35.4/net/ipv4/netfilter/ipt_IMQ.c 2007-12-15 05:20:10.812456409 +0100 +--- /dev/null ++++ b/net/ipv4/netfilter/ipt_IMQ.c @@ -0,0 +1,78 @@ +/* This target marks packets to be enqueued to an imq device */ +#include @@ -628,11 +604,9 @@ Index: linux-2.4.35.4/net/ipv4/netfilter/ipt_IMQ.c +module_init(init); +module_exit(fini); +MODULE_LICENSE("GPL"); -Index: linux-2.4.35.4/net/ipv6/netfilter/Config.in -=================================================================== ---- linux-2.4.35.4.orig/net/ipv6/netfilter/Config.in 2007-12-15 05:20:09.300370243 +0100 -+++ linux-2.4.35.4/net/ipv6/netfilter/Config.in 2007-12-15 05:20:10.816456638 +0100 -@@ -72,6 +72,7 @@ +--- a/net/ipv6/netfilter/Config.in ++++ b/net/ipv6/netfilter/Config.in +@@ -72,6 +72,7 @@ if [ "$CONFIG_IP6_NF_IPTABLES" != "n" ]; if [ "$CONFIG_IP6_NF_MANGLE" != "n" ]; then # dep_tristate ' TOS target support' CONFIG_IP6_NF_TARGET_TOS $CONFIG_IP_NF_MANGLE dep_tristate ' MARK target support' CONFIG_IP6_NF_TARGET_MARK $CONFIG_IP6_NF_MANGLE @@ -640,11 +614,9 @@ Index: linux-2.4.35.4/net/ipv6/netfilter/Config.in fi #dep_tristate ' LOG target support' CONFIG_IP6_NF_TARGET_LOG $CONFIG_IP6_NF_IPTABLES fi -Index: linux-2.4.35.4/net/ipv6/netfilter/Makefile -=================================================================== ---- linux-2.4.35.4.orig/net/ipv6/netfilter/Makefile 2007-12-15 05:20:09.304370470 +0100 -+++ linux-2.4.35.4/net/ipv6/netfilter/Makefile 2007-12-15 05:20:10.816456638 +0100 -@@ -29,6 +29,7 @@ +--- a/net/ipv6/netfilter/Makefile ++++ b/net/ipv6/netfilter/Makefile +@@ -29,6 +29,7 @@ obj-$(CONFIG_IP6_NF_MATCH_OWNER) += ip6t obj-$(CONFIG_IP6_NF_FILTER) += ip6table_filter.o obj-$(CONFIG_IP6_NF_MANGLE) += ip6table_mangle.o obj-$(CONFIG_IP6_NF_TARGET_MARK) += ip6t_MARK.o @@ -652,10 +624,8 @@ Index: linux-2.4.35.4/net/ipv6/netfilter/Makefile obj-$(CONFIG_IP6_NF_QUEUE) += ip6_queue.o obj-$(CONFIG_IP6_NF_TARGET_LOG) += ip6t_LOG.o obj-$(CONFIG_IP6_NF_MATCH_HL) += ip6t_hl.o -Index: linux-2.4.35.4/net/ipv6/netfilter/ip6t_IMQ.c -=================================================================== ---- /dev/null 1970-01-01 00:00:00.000000000 +0000 -+++ linux-2.4.35.4/net/ipv6/netfilter/ip6t_IMQ.c 2007-12-15 05:20:10.816456638 +0100 +--- /dev/null ++++ b/net/ipv6/netfilter/ip6t_IMQ.c @@ -0,0 +1,78 @@ +/* This target marks packets to be enqueued to an imq device */ +#include @@ -735,10 +705,8 @@ Index: linux-2.4.35.4/net/ipv6/netfilter/ip6t_IMQ.c +module_init(init); +module_exit(fini); +MODULE_LICENSE("GPL"); -Index: linux-2.4.35.4/net/sched/sch_generic.c -=================================================================== ---- linux-2.4.35.4.orig/net/sched/sch_generic.c 2007-12-15 05:19:37.226542457 +0100 -+++ linux-2.4.35.4/net/sched/sch_generic.c 2007-12-15 05:20:10.816456638 +0100 +--- a/net/sched/sch_generic.c ++++ b/net/sched/sch_generic.c @@ -29,6 +29,9 @@ #include #include @@ -749,7 +717,7 @@ Index: linux-2.4.35.4/net/sched/sch_generic.c #include #include #include -@@ -90,7 +93,11 @@ +@@ -90,7 +93,11 @@ int qdisc_restart(struct net_device *dev spin_unlock(&dev->queue_lock); if (!netif_queue_stopped(dev)) {