diff options
Diffstat (limited to 'net/ipv4/udp.c')
-rw-r--r-- | net/ipv4/udp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index f9c4ed7207bb..dc19ba1e73b5 100644 --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c | |||
@@ -441,7 +441,7 @@ static void udp4_hwcsum_outgoing(struct sock *sk, struct sk_buff *skb, | |||
441 | 441 | ||
442 | uh->check = csum_tcpudp_magic(src, dst, len, IPPROTO_UDP, csum); | 442 | uh->check = csum_tcpudp_magic(src, dst, len, IPPROTO_UDP, csum); |
443 | if (uh->check == 0) | 443 | if (uh->check == 0) |
444 | uh->check = -1; | 444 | uh->check = CSUM_MANGLED_0; |
445 | } | 445 | } |
446 | } | 446 | } |
447 | 447 | ||
@@ -490,7 +490,7 @@ int udp_push_pending_frames(struct sock *sk, struct udp_sock *up) | |||
490 | uh->check = csum_tcpudp_magic(fl->fl4_src, fl->fl4_dst, up->len, | 490 | uh->check = csum_tcpudp_magic(fl->fl4_src, fl->fl4_dst, up->len, |
491 | sk->sk_protocol, csum ); | 491 | sk->sk_protocol, csum ); |
492 | if (uh->check == 0) | 492 | if (uh->check == 0) |
493 | uh->check = -1; | 493 | uh->check = CSUM_MANGLED_0; |
494 | 494 | ||
495 | send: | 495 | send: |
496 | err = ip_push_pending_frames(sk); | 496 | err = ip_push_pending_frames(sk); |