diff options
author | Tom Herbert <therbert@google.com> | 2014-05-23 11:47:19 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-05-23 16:28:53 -0400 |
commit | 28448b80456feafe07e2d05b6363b00f61f6171e (patch) | |
tree | ad45836de4e3bdb441a78f825d7f53ed8e8c7096 /net/sctp | |
parent | b26ba202e0500eb852e89499ece1b2deaa64c3a7 (diff) |
net: Split sk_no_check into sk_no_check_{rx,tx}
Define separate fields in the sock structure for configuring disabling
checksums in both TX and RX-- sk_no_check_tx and sk_no_check_rx.
The SO_NO_CHECK socket option only affects sk_no_check_tx. Also,
removed UDP_CSUM_* defines since they are no longer necessary.
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/socket.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sctp/socket.c b/net/sctp/socket.c index 2af76eaba8f7..429899689408 100644 --- a/net/sctp/socket.c +++ b/net/sctp/socket.c | |||
@@ -6946,7 +6946,8 @@ void sctp_copy_sock(struct sock *newsk, struct sock *sk, | |||
6946 | newsk->sk_type = sk->sk_type; | 6946 | newsk->sk_type = sk->sk_type; |
6947 | newsk->sk_bound_dev_if = sk->sk_bound_dev_if; | 6947 | newsk->sk_bound_dev_if = sk->sk_bound_dev_if; |
6948 | newsk->sk_flags = sk->sk_flags; | 6948 | newsk->sk_flags = sk->sk_flags; |
6949 | newsk->sk_no_check = sk->sk_no_check; | 6949 | newsk->sk_no_check_tx = sk->sk_no_check_tx; |
6950 | newsk->sk_no_check_rx = sk->sk_no_check_rx; | ||
6950 | newsk->sk_reuse = sk->sk_reuse; | 6951 | newsk->sk_reuse = sk->sk_reuse; |
6951 | 6952 | ||
6952 | newsk->sk_shutdown = sk->sk_shutdown; | 6953 | newsk->sk_shutdown = sk->sk_shutdown; |