From: Roy Marples Date: Sat, 23 Nov 2013 14:10:00 +0000 (+0000) Subject: Fix virtual interfaces without a hardware address. X-Git-Tag: v6.2.0~43 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c74dd57acbe4ce3c8e301daac8f76b41b449cb94;p=thirdparty%2Fdhcpcd.git Fix virtual interfaces without a hardware address. --- diff --git a/if-linux.c b/if-linux.c index 4fad0a72..dd340a4c 100644 --- a/if-linux.c +++ b/if-linux.c @@ -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; }