diff options
Diffstat (limited to 'net/ipv6/addrconf.c')
-rw-r--r-- | net/ipv6/addrconf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index cf88df82e2c2..586051726341 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c | |||
@@ -636,7 +636,7 @@ ipv6_add_addr(struct inet6_dev *idev, const struct in6_addr *addr, int pfxlen, | |||
636 | goto out; | 636 | goto out; |
637 | } | 637 | } |
638 | 638 | ||
639 | ipv6_addr_copy(&ifa->addr, addr); | 639 | ifa->addr = *addr; |
640 | 640 | ||
641 | spin_lock_init(&ifa->lock); | 641 | spin_lock_init(&ifa->lock); |
642 | spin_lock_init(&ifa->state_lock); | 642 | spin_lock_init(&ifa->state_lock); |
@@ -1228,7 +1228,7 @@ try_nextdev: | |||
1228 | if (!hiscore->ifa) | 1228 | if (!hiscore->ifa) |
1229 | return -EADDRNOTAVAIL; | 1229 | return -EADDRNOTAVAIL; |
1230 | 1230 | ||
1231 | ipv6_addr_copy(saddr, &hiscore->ifa->addr); | 1231 | *saddr = hiscore->ifa->addr; |
1232 | in6_ifa_put(hiscore->ifa); | 1232 | in6_ifa_put(hiscore->ifa); |
1233 | return 0; | 1233 | return 0; |
1234 | } | 1234 | } |
@@ -1249,7 +1249,7 @@ int ipv6_get_lladdr(struct net_device *dev, struct in6_addr *addr, | |||
1249 | list_for_each_entry(ifp, &idev->addr_list, if_list) { | 1249 | list_for_each_entry(ifp, &idev->addr_list, if_list) { |
1250 | if (ifp->scope == IFA_LINK && | 1250 | if (ifp->scope == IFA_LINK && |
1251 | !(ifp->flags & banned_flags)) { | 1251 | !(ifp->flags & banned_flags)) { |
1252 | ipv6_addr_copy(addr, &ifp->addr); | 1252 | *addr = ifp->addr; |
1253 | err = 0; | 1253 | err = 0; |
1254 | break; | 1254 | break; |
1255 | } | 1255 | } |
@@ -1700,7 +1700,7 @@ addrconf_prefix_route(struct in6_addr *pfx, int plen, struct net_device *dev, | |||
1700 | .fc_protocol = RTPROT_KERNEL, | 1700 | .fc_protocol = RTPROT_KERNEL, |
1701 | }; | 1701 | }; |
1702 | 1702 | ||
1703 | ipv6_addr_copy(&cfg.fc_dst, pfx); | 1703 | cfg.fc_dst = *pfx; |
1704 | 1704 | ||
1705 | /* Prevent useless cloning on PtP SIT. | 1705 | /* Prevent useless cloning on PtP SIT. |
1706 | This thing is done here expecting that the whole | 1706 | This thing is done here expecting that the whole |