diff options
author | Tom Gundersen <teg@jklm.no> | 2014-12-04 18:12:55 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-12-04 18:53:47 +0100 |
commit | 7eb08da4b388b920c8a894b1500c9cc7dc1f31ef (patch) | |
tree | 04e8739827b83b3a4e1bbc50697b58f157afe90d /src/libsystemd-network/network-internal.h | |
parent | 03e8fdb34610c498e8c7fbe0ae18b53fe28cfbd1 (diff) |
udev: net_setup - allow matching on OriginalName=
This has been requested repeatedly, so let's give it a go. We explicitly do not allow matching
on names that have already been changed (from a previous udev run, or otherwise), and matching
on unpredictable names (ethX) is discouraged (but not currently disallowed).
We also currently allow:
[Match]
Name=veth0
[Link]
Name=my-name0
SomeOtherSetting=true
Which means that the link file will be applied the first time it is invoked, but
not on subsequent invocations, which may be surprising.
Diffstat (limited to 'src/libsystemd-network/network-internal.h')
-rw-r--r-- | src/libsystemd-network/network-internal.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsystemd-network/network-internal.h b/src/libsystemd-network/network-internal.h index c64db2e79d..981c4e0e21 100644 --- a/src/libsystemd-network/network-internal.h +++ b/src/libsystemd-network/network-internal.h @@ -42,7 +42,8 @@ bool net_match_config(const struct ether_addr *match_mac, const char *dev_parent_driver, const char *dev_driver, const char *dev_type, - const char *dev_name); + const char *dev_name, + bool ignore_name_match); int config_parse_net_condition(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, |