diff options
author | Tom Herbert <therbert@google.com> | 2014-05-23 11:47:09 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-05-23 16:28:53 -0400 |
commit | b26ba202e0500eb852e89499ece1b2deaa64c3a7 (patch) | |
tree | 82f9ca0dbc861e11b79d4bdb594638a6c94f127f /net/sctp | |
parent | 0f8066bd48785058c339061fef05be0dcfa8dc08 (diff) |
net: Eliminate no_check from protosw
It doesn't seem like an protocols are setting anything other
than the default, and allowing to arbitrarily disable checksums
for a whole protocol seems dangerous. This can be done on a per
socket basis.
Signed-off-by: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp')
-rw-r--r-- | net/sctp/ipv6.c | 2 | ||||
-rw-r--r-- | net/sctp/protocol.c | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/net/sctp/ipv6.c b/net/sctp/ipv6.c index 4dc5d9e08311..1999592ba88c 100644 --- a/net/sctp/ipv6.c +++ b/net/sctp/ipv6.c | |||
@@ -943,7 +943,6 @@ static struct inet_protosw sctpv6_seqpacket_protosw = { | |||
943 | .protocol = IPPROTO_SCTP, | 943 | .protocol = IPPROTO_SCTP, |
944 | .prot = &sctpv6_prot, | 944 | .prot = &sctpv6_prot, |
945 | .ops = &inet6_seqpacket_ops, | 945 | .ops = &inet6_seqpacket_ops, |
946 | .no_check = 0, | ||
947 | .flags = SCTP_PROTOSW_FLAG | 946 | .flags = SCTP_PROTOSW_FLAG |
948 | }; | 947 | }; |
949 | static struct inet_protosw sctpv6_stream_protosw = { | 948 | static struct inet_protosw sctpv6_stream_protosw = { |
@@ -951,7 +950,6 @@ static struct inet_protosw sctpv6_stream_protosw = { | |||
951 | .protocol = IPPROTO_SCTP, | 950 | .protocol = IPPROTO_SCTP, |
952 | .prot = &sctpv6_prot, | 951 | .prot = &sctpv6_prot, |
953 | .ops = &inet6_seqpacket_ops, | 952 | .ops = &inet6_seqpacket_ops, |
954 | .no_check = 0, | ||
955 | .flags = SCTP_PROTOSW_FLAG, | 953 | .flags = SCTP_PROTOSW_FLAG, |
956 | }; | 954 | }; |
957 | 955 | ||
diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c index af5afca4b85a..6789d785e698 100644 --- a/net/sctp/protocol.c +++ b/net/sctp/protocol.c | |||
@@ -1017,7 +1017,6 @@ static struct inet_protosw sctp_seqpacket_protosw = { | |||
1017 | .protocol = IPPROTO_SCTP, | 1017 | .protocol = IPPROTO_SCTP, |
1018 | .prot = &sctp_prot, | 1018 | .prot = &sctp_prot, |
1019 | .ops = &inet_seqpacket_ops, | 1019 | .ops = &inet_seqpacket_ops, |
1020 | .no_check = 0, | ||
1021 | .flags = SCTP_PROTOSW_FLAG | 1020 | .flags = SCTP_PROTOSW_FLAG |
1022 | }; | 1021 | }; |
1023 | static struct inet_protosw sctp_stream_protosw = { | 1022 | static struct inet_protosw sctp_stream_protosw = { |
@@ -1025,7 +1024,6 @@ static struct inet_protosw sctp_stream_protosw = { | |||
1025 | .protocol = IPPROTO_SCTP, | 1024 | .protocol = IPPROTO_SCTP, |
1026 | .prot = &sctp_prot, | 1025 | .prot = &sctp_prot, |
1027 | .ops = &inet_seqpacket_ops, | 1026 | .ops = &inet_seqpacket_ops, |
1028 | .no_check = 0, | ||
1029 | .flags = SCTP_PROTOSW_FLAG | 1027 | .flags = SCTP_PROTOSW_FLAG |
1030 | }; | 1028 | }; |
1031 | 1029 | ||