summaryrefslogtreecommitdiff
path: root/src/udev/net/link-config.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2013-11-05 01:35:26 +0100
committerTom Gundersen <teg@jklm.no>2013-11-05 01:39:46 +0100
commitb3e013148603aa670bc2c060ac63d48e54d76fc2 (patch)
tree202089dafa566afeec3a5e1df4c45c69a272a68b /src/udev/net/link-config.c
parent3a9f7a30ce89b44097731310221802f6d72ea752 (diff)
net-util: don't use libudev
Should fix linking with old toolchain.
Diffstat (limited to 'src/udev/net/link-config.c')
-rw-r--r--src/udev/net/link-config.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/udev/net/link-config.c b/src/udev/net/link-config.c
index d930afcc07..9d0f23694c 100644
--- a/src/udev/net/link-config.c
+++ b/src/udev/net/link-config.c
@@ -245,9 +245,14 @@ int link_config_get(link_config_ctx *ctx, struct udev_device *device, link_confi
link_config *link;
LIST_FOREACH(links, link, ctx->links) {
+
if (net_match_config(link->match_mac, link->match_path,
- link->match_driver, link->match_type,
- NULL, device)) {
+ link->match_driver, link->match_type, NULL,
+ udev_device_get_sysattr_value(device, "address"),
+ udev_device_get_property_value(device, "ID_PATH"),
+ udev_device_get_driver(device),
+ udev_device_get_devtype(device),
+ NULL)) {
log_debug("Config file %s applies to device %s",
link->filename,
udev_device_get_sysname(device));