aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/protocol.c
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-08-06 15:18:12 -0400
committerDavid S. Miller <davem@davemloft.net>2013-08-09 14:33:02 -0400
commitcda5f98e36576596b9230483ec52bff3cc97eb21 (patch)
treeb828a60d8b6000704d91e35d10247f322a8d3ef8 /net/sctp/protocol.c
parent2690048c01f32bf45d1c1e1ab3079bc10ad2aea7 (diff)
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/protocol.c')
-rw-r--r--net/sctp/protocol.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c
index b52ec2510101..a570a6365f87 100644
--- a/net/sctp/protocol.c
+++ b/net/sctp/protocol.c
@@ -1193,6 +1193,9 @@ static int __net_init sctp_net_init(struct net *net)
1193 /* Whether Cookie Preservative is enabled(1) or not(0) */ 1193 /* Whether Cookie Preservative is enabled(1) or not(0) */
1194 net->sctp.cookie_preserve_enable = 1; 1194 net->sctp.cookie_preserve_enable = 1;
1195 1195
1196 /* Whether SCTP checksumming is disabled(1) or not(0) */
1197 net->sctp.checksum_disable = 0;
1198
1196 /* Default sctp sockets to use md5 as their hmac alg */ 1199 /* Default sctp sockets to use md5 as their hmac alg */
1197#if defined (CONFIG_SCTP_DEFAULT_COOKIE_HMAC_MD5) 1200#if defined (CONFIG_SCTP_DEFAULT_COOKIE_HMAC_MD5)
1198 net->sctp.sctp_hmac_alg = "md5"; 1201 net->sctp.sctp_hmac_alg = "md5";
@@ -1549,6 +1552,4 @@ MODULE_ALIAS("net-pf-" __stringify(PF_INET) "-proto-132");
1549MODULE_ALIAS("net-pf-" __stringify(PF_INET6) "-proto-132"); 1552MODULE_ALIAS("net-pf-" __stringify(PF_INET6) "-proto-132");
1550MODULE_AUTHOR("Linux Kernel SCTP developers <linux-sctp@vger.kernel.org>"); 1553MODULE_AUTHOR("Linux Kernel SCTP developers <linux-sctp@vger.kernel.org>");
1551MODULE_DESCRIPTION("Support for the SCTP protocol (RFC2960)"); 1554MODULE_DESCRIPTION("Support for the SCTP protocol (RFC2960)");
1552module_param_named(no_checksums, sctp_checksum_disable, bool, 0644);
1553MODULE_PARM_DESC(no_checksums, "Disable checksums computing and verification");
1554MODULE_LICENSE("GPL"); 1555MODULE_LICENSE("GPL");