From 2ce39f9244bafda5eb147b9b9427e2237c559269 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Mon, 3 Nov 2003 19:35:29 -0800 Subject: [PATCH] [NETFILTER]: Fix ip_queue_maxlen sysctl. --- net/ipv4/netfilter/ip_queue.c | 5 ++--- net/ipv6/netfilter/ip6_queue.c | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/net/ipv4/netfilter/ip_queue.c b/net/ipv4/netfilter/ip_queue.c index 7b3d403d8aae5..d20aa3af9c30c 100644 --- a/net/ipv4/netfilter/ip_queue.c +++ b/net/ipv4/netfilter/ip_queue.c @@ -581,15 +581,14 @@ static struct notifier_block ipq_nl_notifier = { .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 }, diff --git a/net/ipv6/netfilter/ip6_queue.c b/net/ipv6/netfilter/ip6_queue.c index 7c9f17acdbc8b..5d3d102848d7e 100644 --- a/net/ipv6/netfilter/ip6_queue.c +++ b/net/ipv6/netfilter/ip6_queue.c @@ -584,15 +584,14 @@ static struct notifier_block ipq_nl_notifier = { .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 }, -- 2.53.0