[NET]: Split skb->csum
... into anonymous union of __wsum and __u32 (csum and csum_offset resp.) Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -422,7 +422,7 @@ static void udp4_hwcsum_outgoing(struct sock *sk, struct sk_buff *skb,
|
||||
/*
|
||||
* Only one fragment on the socket.
|
||||
*/
|
||||
skb->csum = offsetof(struct udphdr, check);
|
||||
skb->csum_offset = offsetof(struct udphdr, check);
|
||||
uh->check = ~csum_tcpudp_magic(src, dst, len, IPPROTO_UDP, 0);
|
||||
} else {
|
||||
/*
|
||||
|
Reference in New Issue
Block a user