diff --git a/man/systemd-networkd.service.xml b/man/systemd-networkd.service.xml index f34471c39..57be3358f 100644 --- a/man/systemd-networkd.service.xml +++ b/man/systemd-networkd.service.xml @@ -146,8 +146,7 @@ Type The device type, as exposed by the udev property - DEVTYPE, or ethernet - to match devices without a DEVTYPE. + DEVTYPE. diff --git a/man/udev.xml b/man/udev.xml index 0bcb91139..32a520e7b 100644 --- a/man/udev.xml +++ b/man/udev.xml @@ -793,8 +793,7 @@ Type - The device type, as exposed by the udev property DEVTYPE, or - ethernet to match a device without a DEVTYPE. + The device type, as exposed by the udev property DEVTYPE. diff --git a/src/shared/net-util.c b/src/shared/net-util.c index 85278e5de..8f8cfc9fd 100644 --- a/src/shared/net-util.c +++ b/src/shared/net-util.c @@ -49,7 +49,7 @@ bool net_match_config(const struct ether_addr *match_mac, if (match_driver && !streq_ptr(match_driver, dev_driver)) return 0; - if (match_type && !streq_ptr(match_type, dev_type) && !(streq(match_type, "ethernet") && !dev_type)) + if (match_type && !streq_ptr(match_type, dev_type)) return 0; if (match_name && !streq_ptr(match_name, dev_name))