diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-08-06 21:18:12 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-08-09 20:33:02 +0200 |
commit | cda5f98e36576596b9230483ec52bff3cc97eb21 (patch) | |
tree | b828a60d8b6000704d91e35d10247f322a8d3ef8 /net/sctp/sysctl.c | |
parent | net: igmp: Allow user-space configuration of igmp unsolicited report interval (diff) | |
download | linux-cda5f98e36576596b9230483ec52bff3cc97eb21.tar.xz linux-cda5f98e36576596b9230483ec52bff3cc97eb21.zip |
net: sctp: convert sctp_checksum_disable module param into sctp sysctl
Get rid of the last module parameter for SCTP and make this
configurable via sysctl for SCTP like all the rest of SCTP's
configuration knobs.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/sysctl.c')
-rw-r--r-- | net/sctp/sysctl.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/net/sctp/sysctl.c b/net/sctp/sysctl.c index 190674702b20..754809a7183d 100644 --- a/net/sctp/sysctl.c +++ b/net/sctp/sysctl.c @@ -296,7 +296,15 @@ static struct ctl_table sctp_net_table[] = { .extra1 = &max_autoclose_min, .extra2 = &max_autoclose_max, }, - + { + .procname = "checksum_disable", + .data = &init_net.sctp.checksum_disable, + .maxlen = sizeof(int), + .mode = 0644, + .proc_handler = proc_dointvec_minmax, + .extra1 = &zero, + .extra2 = &one, + }, { /* sentinel */ } }; |