chiark / gitweb /
udev: net-config - allow interface names to be set from the hwdb
[elogind.git] / src / network / networkd-network.c
index 48131c1f090c1ea7af793a6c158d347771fb4aba..a470c22e3dfedf96a6b7f044a307fd10441c8679 100644 (file)
@@ -178,7 +178,7 @@ int network_get(Manager *manager, struct udev_device *device, Network **ret) {
                                         network->match_name,
                                         udev_device_get_sysattr_value(device, "address"),
                                         udev_device_get_property_value(device, "ID_PATH"),
-                                        udev_device_get_driver(device),
+                                        udev_device_get_driver(udev_device_get_parent(device)),
                                         udev_device_get_devtype(device),
                                         udev_device_get_sysname(device))) {
                         log_debug("%s: found matching network '%s'",