X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=net%2Fsctp%2Fsysctl.c;h=75b28dd634fe3e0c06b0a556716b7c4755b7c816;hb=f35279d3f713e5c97b98cbdbf47d98f79942c11f;hp=7fc31849312ba85976eb1024161d057b02c672a2;hpb=4eb701dfc618491c9b97377df6e61de36dfc39ce;p=linux-2.6 diff --git a/net/sctp/sysctl.c b/net/sctp/sysctl.c index 7fc3184931..75b28dd634 100644 --- a/net/sctp/sysctl.c +++ b/net/sctp/sysctl.c @@ -42,11 +42,14 @@ */ #include +#include #include static ctl_handler sctp_sysctl_jiffies_ms; static long rto_timer_min = 1; static long rto_timer_max = 86400000; /* One day */ +static long sack_timer_min = 1; +static long sack_timer_max = 500; static ctl_table sctp_table[] = { { @@ -187,6 +190,17 @@ static ctl_table sctp_table[] = { .mode = 0644, .proc_handler = &proc_dointvec }, + { + .ctl_name = NET_SCTP_SACK_TIMEOUT, + .procname = "sack_timeout", + .data = &sctp_sack_timeout, + .maxlen = sizeof(long), + .mode = 0644, + .proc_handler = &proc_doulongvec_ms_jiffies_minmax, + .strategy = &sctp_sysctl_jiffies_ms, + .extra1 = &sack_timer_min, + .extra2 = &sack_timer_max, + }, { .ctl_name = 0 } };