diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-01-28 21:33:05 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-01-28 21:33:18 +0100 |
commit | 889f3236fde274d6ebff23fe62c5cd66ed8b3eb7 (patch) | |
tree | 0c3833c8e3391aec42dc29d51c68531210ef85f3 | |
parent | f054a655c331342200b5929f533792d528ac6002 (diff) |
alias: set ifindex on alias device to fix setting addresses/routes
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
-rw-r--r-- | alias.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |