aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/udp.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2007-03-13 13:28:48 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 01:25:22 -0400
commit4bedb45203eab92a87b4c863fe2d0cded633427f (patch)
treed46e43d0a08253cf85ee2db64df6aee5e4ff5a07 /net/ipv6/udp.c
parentd9edf9e2be0f7661558984c32bd53867a7037fd3 (diff)
[SK_BUFF]: Introduce udp_hdr(), remove skb->h.uh
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
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);