From 889f3236fde274d6ebff23fe62c5cd66ed8b3eb7 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 28 Jan 2013 21:33:05 +0100 Subject: [PATCH] alias: set ifindex on alias device to fix setting addresses/routes Signed-off-by: Felix Fietkau --- alias.c | 1 + 1 file changed, 1 insertion(+) diff --git a/alias.c b/alias.c index 185a5d2..4e0a6be 100644 --- a/alias.c +++ b/alias.c @@ -51,6 +51,7 @@ static void alias_set_device(struct alias_device *alias, struct device *dev) device_remove_user(&alias->dep); alias->dev.hidden = !dev; if (dev) { + alias->dev.ifindex = dev->ifindex; strcpy(alias->dev.ifname, dev->ifname); device_broadcast_event(&alias->dev, DEV_EVENT_UPDATE_IFNAME); device_add_user(&alias->dep, dev); -- 2.25.1