bugfix for ip_queue_maxlen sysctl
Subsystems (2)
PATCH 1/1 bugfix for ip_queue_maxlen sysctl
Hi Davem!
This is the 2.6.x merge of the patch I just sent for 2.4.x:
Unfortunately the current ip_queue implementation keeps two variables for the maximum queue length: One that can be set via sysctl (but is not used internally), and one that is used by the implementation, but cannot be set by the user. (bugzilla.netfilter.org #150)
Please apply to the 2.6 tree.
Thanks to Jim Minter for spotting this bug.
Signature · 5 lines
- Harald Welte <[email protected]> http://www.netfilter.org/ ============================================================================ "Fragmentation is like classful addressing -- an interesting early architectural error that shows how much experimentation was going on while IP was being designed." -- Paul Vixie
net/ipv4/netfilter/ip_queue.c +2 -3
@@ -581,15 +581,14 @@ .notifier_call = ipq_rcv_nl_event, }; -static int sysctl_maxlen =IPQ_QMAX_DEFAULT ;static struct ctl_table_header *ipq_sysctl_header;static ctl_table ipq_table[] = { { .ctl_name =NET_IPQ_QMAX , .procname =NET_IPQ_QMAX_NAME , - .data = &sysctl_maxlen, - .maxlen =sizeof (sysctl_maxlen), + .data = &queue_maxlen, + .maxlen =sizeof (queue_maxlen), .mode =0644 , .proc_handler = proc_dointvec },
net/ipv6/netfilter/ip6_queue.c +2 -3
@@ -584,15 +584,14 @@ .notifier_call = ipq_rcv_nl_event, }; -static int sysctl_maxlen =IPQ_QMAX_DEFAULT ;static struct ctl_table_header *ipq_sysctl_header;static ctl_table ipq_table[] = { { .ctl_name =NET_IPQ_QMAX , .procname =NET_IPQ_QMAX_NAME , - .data = &sysctl_maxlen, - .maxlen =sizeof (sysctl_maxlen), + .data = &queue_maxlen, + .maxlen =sizeof (queue_maxlen), .mode =0644 , .proc_handler = proc_dointvec },
David S. Miller
AppliedQuoted 1 line · On Tue, 4 Nov 2003 17:00:16 +0100 Harald Welte <[email protected]> wrote:
This is the 2.6.x merge of the patch I just sent for 2.4.x:
Applied, thanks.