summaryrefslogtreecommitdiffstats
path: root/src/shared/net-condition.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-11-04 18:29:34 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-11-13 00:53:33 +0100
commit1de88f3048bc727fc648455be61bd417555cce40 (patch)
treeb6a9257f814cc40c09abebfbb96a8425ead5bd80 /src/shared/net-condition.c
parentnetworkctl: read permanent hardware address from netlink message (diff)
downloadsystemd-1de88f3048bc727fc648455be61bd417555cce40.tar.xz
systemd-1de88f3048bc727fc648455be61bd417555cce40.zip
udev/net: read hardware address from netlink message
Diffstat (limited to 'src/shared/net-condition.c')
-rw-r--r--src/shared/net-condition.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/shared/net-condition.c b/src/shared/net-condition.c
index ac0a364f06..6be8f1cbce 100644
--- a/src/shared/net-condition.c
+++ b/src/shared/net-condition.c
@@ -143,16 +143,11 @@ int net_match_config(
return r;
if (device) {
- const char *mac_str;
-
(void) sd_device_get_property_value(device, "ID_PATH", &path);
if (!driver)
(void) sd_device_get_property_value(device, "ID_NET_DRIVER", &driver);
if (!ifname)
(void) sd_device_get_sysname(device, &ifname);
- if (!mac &&
- sd_device_get_sysattr_value(device, "address", &mac_str) >= 0)
- mac = ether_aton(mac_str);
}
if (match->mac && (!mac || !set_contains(match->mac, mac)))