aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/input.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/input.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/input.c')
-rw-r--r--net/sctp/input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sctp/input.c b/net/sctp/input.c
index fa91aff02388..b9a25e18bb2b 100644
--- a/net/sctp/input.c
+++ b/net/sctp/input.c
@@ -140,8 +140,8 @@ int sctp_rcv(struct sk_buff *skb)
140 __skb_pull(skb, skb_transport_offset(skb)); 140 __skb_pull(skb, skb_transport_offset(skb));
141 if (skb->len < sizeof(struct sctphdr)) 141 if (skb->len < sizeof(struct sctphdr))
142 goto discard_it; 142 goto discard_it;
143 if (!sctp_checksum_disable && !skb_csum_unnecessary(skb) && 143 if (!net->sctp.checksum_disable && !skb_csum_unnecessary(skb) &&
144 sctp_rcv_checksum(net, skb) < 0) 144 sctp_rcv_checksum(net, skb) < 0)
145 goto discard_it; 145 goto discard_it;
146 146
147 skb_pull(skb, sizeof(struct sctphdr)); 147 skb_pull(skb, sizeof(struct sctphdr));