summaryrefslogtreecommitdiffhomepage
path: root/alias.c
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2013-01-16 14:56:10 +0100
committerFelix Fietkau <nbd@openwrt.org>2013-01-16 16:06:07 +0100
commit74de0901a05271f51ec42beef649e1cc0abc917f (patch)
tree0d01ba8ad427280aa55bcbdfba1016d00796a52b /alias.c
parent72ebaba19ded36b101f3be0f233361970f8eec13 (diff)
alias: use layer 3 device instead of main device
Diffstat (limited to 'alias.c')
-rw-r--r--alias.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/alias.c b/alias.c
index 14b4c8f..e77deff 100644
--- a/alias.c
+++ b/alias.c
@@ -126,7 +126,7 @@ static int alias_check_state(struct device *dev)
iface = vlist_find(&interfaces, alias->name, iface, node);
if (iface && iface->state == IFS_UP)
- ndev = iface->main_dev.dev;
+ ndev = iface->l3_dev.dev;
__alias_notify_device(alias, ndev);