aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/udp.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/udp.c')
-rw-r--r--net/ipv4/udp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c
index 13b4dcf86ef6..97ef1f8b7be8 100644
--- a/net/ipv4/udp.c
+++ b/net/ipv4/udp.c
@@ -1329,7 +1329,7 @@ try_again:
1329 *addr_len = sizeof(*sin); 1329 *addr_len = sizeof(*sin);
1330 } 1330 }
1331 if (inet->cmsg_flags) 1331 if (inet->cmsg_flags)
1332 ip_cmsg_recv(msg, skb); 1332 ip_cmsg_recv_offset(msg, skb, sizeof(struct udphdr));
1333 1333
1334 err = copied; 1334 err = copied;
1335 if (flags & MSG_TRUNC) 1335 if (flags & MSG_TRUNC)
@@ -1806,7 +1806,7 @@ int __udp4_lib_rcv(struct sk_buff *skb, struct udp_table *udptable,
1806 if (sk != NULL) { 1806 if (sk != NULL) {
1807 int ret; 1807 int ret;
1808 1808
1809 if (udp_sk(sk)->convert_csum && uh->check && !IS_UDPLITE(sk)) 1809 if (inet_get_convert_csum(sk) && uh->check && !IS_UDPLITE(sk))
1810 skb_checksum_try_convert(skb, IPPROTO_UDP, uh->check, 1810 skb_checksum_try_convert(skb, IPPROTO_UDP, uh->check,
1811 inet_compute_pseudo); 1811 inet_compute_pseudo);
1812 1812