aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/udp.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6/udp.c')
-rw-r--r--net/ipv6/udp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c
index 55affe39b2eb..1e3dfb20b1cf 100644
--- a/net/ipv6/udp.c
+++ b/net/ipv6/udp.c
@@ -172,7 +172,7 @@ try_again:
172 172
173 sin6 = (struct sockaddr_in6 *) msg->msg_name; 173 sin6 = (struct sockaddr_in6 *) msg->msg_name;
174 sin6->sin6_family = AF_INET6; 174 sin6->sin6_family = AF_INET6;
175 sin6->sin6_port = skb->h.uh->source; 175 sin6->sin6_port = udp_hdr(skb)->source;
176 sin6->sin6_flowinfo = 0; 176 sin6->sin6_flowinfo = 0;
177 sin6->sin6_scope_id = 0; 177 sin6->sin6_scope_id = 0;
178 178
@@ -346,7 +346,7 @@ static int __udp6_lib_mcast_deliver(struct sk_buff *skb, struct in6_addr *saddr,
346 struct in6_addr *daddr, struct hlist_head udptable[]) 346 struct in6_addr *daddr, struct hlist_head udptable[])
347{ 347{
348 struct sock *sk, *sk2; 348 struct sock *sk, *sk2;
349 const struct udphdr *uh = skb->h.uh; 349 const struct udphdr *uh = udp_hdr(skb);
350 int dif; 350 int dif;
351 351
352 read_lock(&udp_hash_lock); 352 read_lock(&udp_hash_lock);
@@ -420,7 +420,7 @@ int __udp6_lib_rcv(struct sk_buff **pskb, struct hlist_head udptable[],
420 420
421 saddr = &ipv6_hdr(skb)->saddr; 421 saddr = &ipv6_hdr(skb)->saddr;
422 daddr = &ipv6_hdr(skb)->daddr; 422 daddr = &ipv6_hdr(skb)->daddr;
423 uh = skb->h.uh; 423 uh = udp_hdr(skb);
424 424
425 ulen = ntohs(uh->len); 425 ulen = ntohs(uh->len);
426 if (ulen > skb->len) 426 if (ulen > skb->len)
@@ -441,7 +441,7 @@ int __udp6_lib_rcv(struct sk_buff **pskb, struct hlist_head udptable[],
441 goto short_packet; 441 goto short_packet;
442 saddr = &ipv6_hdr(skb)->saddr; 442 saddr = &ipv6_hdr(skb)->saddr;
443 daddr = &ipv6_hdr(skb)->daddr; 443 daddr = &ipv6_hdr(skb)->daddr;
444 uh = skb->h.uh; 444 uh = udp_hdr(skb);
445 } 445 }
446 } 446 }
447 447
@@ -534,7 +534,7 @@ static int udp_v6_push_pending_frames(struct sock *sk)
534 /* 534 /*
535 * Create a UDP header 535 * Create a UDP header
536 */ 536 */
537 uh = skb->h.uh; 537 uh = udp_hdr(skb);
538 uh->source = fl->fl_ip_sport; 538 uh->source = fl->fl_ip_sport;
539 uh->dest = fl->fl_ip_dport; 539 uh->dest = fl->fl_ip_dport;
540 uh->len = htons(up->len); 540 uh->len = htons(up->len);