lxc_log_define(network, lxc);
typedef int (*instantiate_cb)(struct lxc_handler *, struct lxc_netdev *);
-static const char loDev[] = "lo";
+static const char loop_device[] = "lo";
static int lxc_ip_route_dest(__u16 nlmsg_type, int family, int ifindex, void *dest, unsigned int netmask)
{
}
/* Retrieve local-loopback interface index for use with IPVLAN static routes. */
- lo_ifindex = if_nametoindex(loDev);
+ lo_ifindex = if_nametoindex(loop_device);
if (lo_ifindex == 0) {
- ERROR("Failed to retrieve ifindex for \"%s\" routing cleanup", loDev);
+ ERROR("Failed to retrieve ifindex for \"%s\" routing cleanup", loop_device);
return minus_one_set_errno(EINVAL);
}
}
if (netdev->type == LXC_NET_IPVLAN) {
err = lxc_ipv4_dest_add(lo_ifindex, &inet4dev->addr, 32);
if (err < 0) {
- ERROR("Failed to add ipv4 dest \"%s\" for network device \"%s\"", bufinet4, loDev);
+ ERROR("Failed to add ipv4 dest \"%s\" for network device \"%s\"", bufinet4, loop_device);
return minus_one_set_errno(-err);
}
}
if (netdev->type == LXC_NET_IPVLAN) {
err = lxc_ipv6_dest_add(lo_ifindex, &inet6dev->addr, 128);
if (err < 0) {
- ERROR("Failed to add ipv6 dest \"%s\" for network device \"%s\"", bufinet6, loDev);
+ ERROR("Failed to add ipv6 dest \"%s\" for network device \"%s\"", bufinet6, loop_device);
return minus_one_set_errno(-err);
}
}
/* Perform IPVLAN specific checks. */
if (netdev->type == LXC_NET_IPVLAN) {
/* Retrieve local-loopback interface index for use with IPVLAN static routes. */
- lo_ifindex = if_nametoindex(loDev);
+ lo_ifindex = if_nametoindex(loop_device);
if (lo_ifindex == 0) {
errCount++;
- ERROR("Failed to retrieve ifindex for \"%s\" routing cleanup", loDev);
+ ERROR("Failed to retrieve ifindex for \"%s\" routing cleanup", loop_device);
}
}