From 74de0901a05271f51ec42beef649e1cc0abc917f Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Wed, 16 Jan 2013 14:56:10 +0100 Subject: alias: use layer 3 device instead of main device --- alias.c | 2 +- interface.c | 2 +- 2 files changed, 2 insertions(+), 2 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); diff --git a/interface.c b/interface.c index 352c734..591c0f5 100644 --- a/interface.c +++ b/interface.c @@ -163,7 +163,7 @@ interface_event(struct interface *iface, enum interface_event ev) switch (ev) { case IFEV_UP: - adev = iface->main_dev.dev; + adev = iface->l3_dev.dev; /* fall through */ case IFEV_DOWN: alias_notify_device(iface->name, adev); -- cgit v1.2.3