diff options
Diffstat (limited to 'net/ipv6/exthdrs.c')
-rw-r--r-- | net/ipv6/exthdrs.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/net/ipv6/exthdrs.c b/net/ipv6/exthdrs.c index bf22a225f422..3d641b6e9b09 100644 --- a/net/ipv6/exthdrs.c +++ b/net/ipv6/exthdrs.c | |||
@@ -243,9 +243,9 @@ static int ipv6_dest_hao(struct sk_buff *skb, int optoff) | |||
243 | if (skb->ip_summed == CHECKSUM_COMPLETE) | 243 | if (skb->ip_summed == CHECKSUM_COMPLETE) |
244 | skb->ip_summed = CHECKSUM_NONE; | 244 | skb->ip_summed = CHECKSUM_NONE; |
245 | 245 | ||
246 | ipv6_addr_copy(&tmp_addr, &ipv6h->saddr); | 246 | tmp_addr = ipv6h->saddr; |
247 | ipv6_addr_copy(&ipv6h->saddr, &hao->addr); | 247 | ipv6h->saddr = hao->addr; |
248 | ipv6_addr_copy(&hao->addr, &tmp_addr); | 248 | hao->addr = tmp_addr; |
249 | 249 | ||
250 | if (skb->tstamp.tv64 == 0) | 250 | if (skb->tstamp.tv64 == 0) |
251 | __net_timestamp(skb); | 251 | __net_timestamp(skb); |
@@ -461,9 +461,9 @@ looped_back: | |||
461 | return -1; | 461 | return -1; |
462 | } | 462 | } |
463 | 463 | ||
464 | ipv6_addr_copy(&daddr, addr); | 464 | daddr = *addr; |
465 | ipv6_addr_copy(addr, &ipv6_hdr(skb)->daddr); | 465 | *addr = ipv6_hdr(skb)->daddr; |
466 | ipv6_addr_copy(&ipv6_hdr(skb)->daddr, &daddr); | 466 | ipv6_hdr(skb)->daddr = daddr; |
467 | 467 | ||
468 | skb_dst_drop(skb); | 468 | skb_dst_drop(skb); |
469 | ip6_route_input(skb); | 469 | ip6_route_input(skb); |
@@ -690,7 +690,7 @@ static void ipv6_push_rthdr(struct sk_buff *skb, u8 *proto, | |||
690 | memcpy(phdr->addr, ihdr->addr + 1, | 690 | memcpy(phdr->addr, ihdr->addr + 1, |
691 | (hops - 1) * sizeof(struct in6_addr)); | 691 | (hops - 1) * sizeof(struct in6_addr)); |
692 | 692 | ||
693 | ipv6_addr_copy(phdr->addr + (hops - 1), *addr_p); | 693 | phdr->addr[hops - 1] = **addr_p; |
694 | *addr_p = ihdr->addr; | 694 | *addr_p = ihdr->addr; |
695 | 695 | ||
696 | phdr->rt_hdr.nexthdr = *proto; | 696 | phdr->rt_hdr.nexthdr = *proto; |
@@ -888,8 +888,8 @@ struct in6_addr *fl6_update_dst(struct flowi6 *fl6, | |||
888 | if (!opt || !opt->srcrt) | 888 | if (!opt || !opt->srcrt) |
889 | return NULL; | 889 | return NULL; |
890 | 890 | ||
891 | ipv6_addr_copy(orig, &fl6->daddr); | 891 | *orig = fl6->daddr; |
892 | ipv6_addr_copy(&fl6->daddr, ((struct rt0_hdr *)opt->srcrt)->addr); | 892 | fl6->daddr = *((struct rt0_hdr *)opt->srcrt)->addr; |
893 | return orig; | 893 | return orig; |
894 | } | 894 | } |
895 | 895 | ||