|
@@ -794,10 +794,10 @@ static int __udp6_lib_mcast_deliver(struct net *net, struct sk_buff *skb,
|
|
dif = inet6_iif(skb);
|
|
dif = inet6_iif(skb);
|
|
sk = udp_v6_mcast_next(net, sk, uh->dest, daddr, uh->source, saddr, dif);
|
|
sk = udp_v6_mcast_next(net, sk, uh->dest, daddr, uh->source, saddr, dif);
|
|
while (sk) {
|
|
while (sk) {
|
|
- /* If zero checksum and sk_no_check is not on for
|
|
|
|
|
|
+ /* If zero checksum and no_check is not on for
|
|
* the socket then skip it.
|
|
* the socket then skip it.
|
|
*/
|
|
*/
|
|
- if (uh->check || sk->sk_no_check_rx)
|
|
|
|
|
|
+ if (uh->check || udp_sk(sk)->no_check6_rx)
|
|
stack[count++] = sk;
|
|
stack[count++] = sk;
|
|
|
|
|
|
sk = udp_v6_mcast_next(net, sk_nulls_next(sk), uh->dest, daddr,
|
|
sk = udp_v6_mcast_next(net, sk_nulls_next(sk), uh->dest, daddr,
|
|
@@ -887,7 +887,7 @@ int __udp6_lib_rcv(struct sk_buff *skb, struct udp_table *udptable,
|
|
if (sk != NULL) {
|
|
if (sk != NULL) {
|
|
int ret;
|
|
int ret;
|
|
|
|
|
|
- if (!uh->check && !sk->sk_no_check_rx) {
|
|
|
|
|
|
+ if (!uh->check && !udp_sk(sk)->no_check6_rx) {
|
|
sock_put(sk);
|
|
sock_put(sk);
|
|
udp6_csum_zero_error(skb);
|
|
udp6_csum_zero_error(skb);
|
|
goto csum_error;
|
|
goto csum_error;
|
|
@@ -1037,7 +1037,7 @@ static int udp_v6_push_pending_frames(struct sock *sk)
|
|
|
|
|
|
if (is_udplite)
|
|
if (is_udplite)
|
|
csum = udplite_csum_outgoing(sk, skb);
|
|
csum = udplite_csum_outgoing(sk, skb);
|
|
- else if (sk->sk_no_check_tx) { /* UDP csum disabled */
|
|
|
|
|
|
+ else if (up->no_check6_tx) { /* UDP csum disabled */
|
|
skb->ip_summed = CHECKSUM_NONE;
|
|
skb->ip_summed = CHECKSUM_NONE;
|
|
goto send;
|
|
goto send;
|
|
} else if (skb->ip_summed == CHECKSUM_PARTIAL) { /* UDP hardware csum */
|
|
} else if (skb->ip_summed == CHECKSUM_PARTIAL) { /* UDP hardware csum */
|