interface->ifindex = info->ifi_index;
interface->state = IFSTATE_NEW;
memcpy(interface->hwaddr, ifaddr, sizeof(interface->hwaddr));
interface->ifindex = info->ifi_index;
interface->state = IFSTATE_NEW;
memcpy(interface->hwaddr, ifaddr, sizeof(interface->hwaddr));
list_for_each_entry(&network->interfaces, tmp, list)
if (memcmp(interface->hwaddr, tmp->hwaddr,
list_for_each_entry(&network->interfaces, tmp, list)
if (memcmp(interface->hwaddr, tmp->hwaddr,
/* A repeated RTM_NEWLINK can represent an interface name change */
if (strncmp(interface->name, ifname, IFNAMSIZ)) {
pb_debug("ifname update: %s -> %s\n", interface->name, ifname);
/* A repeated RTM_NEWLINK can represent an interface name change */
if (strncmp(interface->name, ifname, IFNAMSIZ)) {
pb_debug("ifname update: %s -> %s\n", interface->name, ifname);
talloc_free(interface->dev->device->id);
interface->dev->device->id =
talloc_strdup(interface->dev->device, ifname);
talloc_free(interface->dev->device->id);
interface->dev->device->id =
talloc_strdup(interface->dev->device, ifname);