mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
networkd-wait-online: support globbing for ignored devices
This commit is contained in:
parent
3cc711193d
commit
5d8689d749
2
TODO
2
TODO
@ -34,8 +34,6 @@ External:
|
||||
|
||||
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
|
||||
|
@ -21,6 +21,7 @@
|
||||
|
||||
#include <netinet/ether.h>
|
||||
#include <linux/if.h>
|
||||
#include <fnmatch.h>
|
||||
|
||||
#include "rtnl-util.h"
|
||||
|
||||
@ -32,13 +33,16 @@
|
||||
#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))
|
||||
STRV_FOREACH(ignore, m->ignore)
|
||||
if (fnmatch(*ignore, link->ifname, 0) == 0)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user