Make sure that when configuring containers that have interfaces containing
multiple IP addresses they are added in the order of the configuration file
(i.e. the first being the primary one) and not the reverse order.
Signed-off-by: Christian Seiler <christian@iwakd.de>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
htonl(INADDR_BROADCAST >> inetdev->prefix);
}
- lxc_list_add(&netdev->ipv4, list);
+ lxc_list_add_tail(&netdev->ipv4, list);
free(addr);
return 0;
return -1;
}
- lxc_list_add(&netdev->ipv6, list);
+ lxc_list_add_tail(&netdev->ipv6, list);
free(valdup);
return 0;