alias: use layer 3 device instead of main device
[project/netifd.git] / interface.c
index 352c734..591c0f5 100644 (file)
@@ -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);