ipv6: convert idev_list to list macros
Convert to list macro's for the list of addresses per interface in IPv6. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
3a88a81d89
commit
502a2ffd73
@@ -371,7 +371,7 @@ static void sctp_v6_copy_addrlist(struct list_head *addrlist,
|
||||
}
|
||||
|
||||
read_lock_bh(&in6_dev->lock);
|
||||
for (ifp = in6_dev->addr_list; ifp; ifp = ifp->if_next) {
|
||||
list_for_each_entry(ifp, &in6_dev->addr_list, if_list) {
|
||||
/* Add the address to the local list. */
|
||||
addr = t_new(struct sctp_sockaddr_entry, GFP_ATOMIC);
|
||||
if (addr) {
|
||||
|
Reference in New Issue
Block a user