diff options
author | YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | 2008-04-10 02:42:11 -0400 |
---|---|---|
committer | YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | 2008-04-12 00:43:20 -0400 |
commit | d7aabf22efb50e6d52ed953ed2a43996152a7fb0 (patch) | |
tree | 0214416f3a27ab1425f9f90f073dc86730aa2e06 /net/ipv6/addrconf.c | |
parent | f3ee4010e84452aa133e5163e6cfabc52b194e94 (diff) |
[IPV6]: Use in6addr_any where appropriate.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Diffstat (limited to 'net/ipv6/addrconf.c')
-rw-r--r-- | net/ipv6/addrconf.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 7df04d294924..e93fa62089f8 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c | |||
@@ -2745,7 +2745,6 @@ static void addrconf_dad_timer(unsigned long data) | |||
2745 | { | 2745 | { |
2746 | struct inet6_ifaddr *ifp = (struct inet6_ifaddr *) data; | 2746 | struct inet6_ifaddr *ifp = (struct inet6_ifaddr *) data; |
2747 | struct inet6_dev *idev = ifp->idev; | 2747 | struct inet6_dev *idev = ifp->idev; |
2748 | struct in6_addr unspec; | ||
2749 | struct in6_addr mcaddr; | 2748 | struct in6_addr mcaddr; |
2750 | 2749 | ||
2751 | read_lock_bh(&idev->lock); | 2750 | read_lock_bh(&idev->lock); |
@@ -2774,9 +2773,8 @@ static void addrconf_dad_timer(unsigned long data) | |||
2774 | read_unlock_bh(&idev->lock); | 2773 | read_unlock_bh(&idev->lock); |
2775 | 2774 | ||
2776 | /* send a neighbour solicitation for our addr */ | 2775 | /* send a neighbour solicitation for our addr */ |
2777 | memset(&unspec, 0, sizeof(unspec)); | ||
2778 | addrconf_addr_solict_mult(&ifp->addr, &mcaddr); | 2776 | addrconf_addr_solict_mult(&ifp->addr, &mcaddr); |
2779 | ndisc_send_ns(ifp->idev->dev, NULL, &ifp->addr, &mcaddr, &unspec); | 2777 | ndisc_send_ns(ifp->idev->dev, NULL, &ifp->addr, &mcaddr, &in6addr_any); |
2780 | out: | 2778 | out: |
2781 | in6_ifa_put(ifp); | 2779 | in6_ifa_put(ifp); |
2782 | } | 2780 | } |