[netfilter-cvslog] r3598 - branches/netfilter-ha/linux-2.6/ct_sync
hidden at netfilter.org
hidden at netfilter.org
Thu Jan 13 00:31:36 CET 2005
Author: hidden at netfilter.org
Date: 2005-01-13 00:31:36 +0100 (Thu, 13 Jan 2005)
New Revision: 3598
Modified:
branches/netfilter-ha/linux-2.6/ct_sync/ct_sync_main.c
Log:
Revision: hidden at sch.bme.hu--2005-public/netfilter-ha--mainline--1.0--patch-20
Fix SIGSEGV when setting recovery threshold through sysctl.
* ct_sync/ct_sync_main.c: fix min and max values in the sysctl structure
for recovery_threshold
set default value of recv_burst to 20 (we need this to be low, otherwise
our socket receive buffer gets full and the kernel drops our precious packets)
Modified: branches/netfilter-ha/linux-2.6/ct_sync/ct_sync_main.c
===================================================================
--- branches/netfilter-ha/linux-2.6/ct_sync/ct_sync_main.c 2005-01-12 23:04:55 UTC (rev 3597)
+++ branches/netfilter-ha/linux-2.6/ct_sync/ct_sync_main.c 2005-01-12 23:31:36 UTC (rev 3598)
@@ -769,8 +769,11 @@
static int cts_sysctl_state;
static int cts_sysctl_maxage;
static int cts_sysctl_send_burst = 100;
-static int cts_sysctl_recv_burst = 400;
+static int cts_sysctl_recv_burst = 20;
+static int recovery_threshold_min = 1;
+static int recovery_threshold_max = 32000;
+
#define CTS_SYSCTL_STATE_NONE 0
#define CTS_SYSCTL_STATE_SLAVE 1
#define CTS_SYSCTL_STATE_MASTER 2
@@ -940,8 +943,8 @@
.data = &cts_proto_recovery_threshold,
.maxlen = sizeof(int),
.proc_handler = &proc_dointvec_minmax,
- .extra1 = (void *)0,
- .extra2 = (void *)32767,
+ .extra1 = &recovery_threshold_min,
+ .extra2 = &recovery_threshold_max,
},
{ .ctl_name = 0 }
};
More information about the netfilter-cvslog
mailing list