[IPV6]: Don't dump temporary addresses twice

Each IPv6 Temporary Address (w/ CONFIG_IPV6_PRIVACY) is dumped twice
to netlink.

Because temporary addresses are listed in idev->addr_list,
there's no need to dump idev->tempaddr separately.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by YOSHIFUJI Hideaki and committed by David S. Miller ae9cda5d 8a47077a

+1 -14
+1 -14
net/ipv6/addrconf.c
··· 2777 2777 read_lock_bh(&idev->lock); 2778 2778 switch (type) { 2779 2779 case UNICAST_ADDR: 2780 - /* unicast address */ 2780 + /* unicast address incl. temp addr */ 2781 2781 for (ifa = idev->addr_list; ifa; 2782 2782 ifa = ifa->if_next, ip_idx++) { 2783 2783 if (ip_idx < s_ip_idx) ··· 2788 2788 NLM_F_MULTI)) <= 0) 2789 2789 goto done; 2790 2790 } 2791 - /* temp addr */ 2792 - #ifdef CONFIG_IPV6_PRIVACY 2793 - for (ifa = idev->tempaddr_list; ifa; 2794 - ifa = ifa->tmp_next, ip_idx++) { 2795 - if (ip_idx < s_ip_idx) 2796 - continue; 2797 - if ((err = inet6_fill_ifaddr(skb, ifa, 2798 - NETLINK_CB(cb->skb).pid, 2799 - cb->nlh->nlmsg_seq, RTM_NEWADDR, 2800 - NLM_F_MULTI)) <= 0) 2801 - goto done; 2802 - } 2803 - #endif 2804 2791 break; 2805 2792 case MULTICAST_ADDR: 2806 2793 /* multicast address */