]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix virtual interfaces without a hardware address.
authorRoy Marples <roy@marples.name>
Sat, 23 Nov 2013 14:10:00 +0000 (14:10 +0000)
committerRoy Marples <roy@marples.name>
Sat, 23 Nov 2013 14:10:00 +0000 (14:10 +0000)
if-linux.c

index 4fad0a72f312c2f0f40b7460b5c7a2ca1285d075..dd340a4c925fd48a1087cf6f0ab4584e19e55859 100644 (file)
@@ -476,11 +476,11 @@ link_netlink(struct nlmsghdr *nlm)
                return 1;
        }
 
-       /* Bridge interfaces set IFF_LOWER_UP when they have a valid
-        * hardware address. To trigger a valid hardware address pickup
-        * we need to pretend that that don't exist until they have
-        * IFF_LOWER_UP set. */
-       if (ifi->ifi_flags & IFF_MASTER && !(ifi->ifi_flags & IFF_LOWER_UP)) {
+       /* Virtual interfaces may not get a valid hardware address
+        * at this point.
+        * To trigger a valid hardware address pickup we need to pretend
+        * that that don't exist until they have one. */
+       if (ifi->ifi_flags & IFF_MASTER && !hwaddr) {
                handle_interface(-1, ifn);
                return 1;
        }