Features:
-* network-wait-online should support globbing for interfaces.
-
* network-wait-online should have a configurable timeout, maybe as --timeout-usec=
* The udev blkid built-in should expose a property that reflects
#include <netinet/ether.h>
#include <linux/if.h>
+#include <fnmatch.h>
#include "rtnl-util.h"
#include "util.h"
bool manager_ignore_link(Manager *m, Link *link) {
+ char **ignore;
+
assert(m);
assert(link);
if (link->flags & IFF_LOOPBACK)
return true;
- if (strv_contains(m->ignore, link->ifname))
- return true;
+ STRV_FOREACH(ignore, m->ignore)
+ if (fnmatch(*ignore, link->ifname, 0) == 0)
+ return true;
return false;
}