diff options
author | Tom Gundersen <teg@jklm.no> | 2014-04-15 14:21:44 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-04-19 18:41:58 +0200 |
commit | 505f8da7325591defe5f751f328bd26915267602 (patch) | |
tree | 5f4ff2ad396ab7666ac45ed2e1a9f3ff1f13b62b /src/udev | |
parent | d1ca51b153d7854d49400289ddedc7d493458f71 (diff) |
networkd: tie links to rtnl rather than udev
This essentially swaps the roles of rtnl and udev in networkd. After this
change libudev is only used for waiting for udev to initialize devices and
to get udev-specific information needed for some [Match] attributes.
This in particular simplifies the code in containers where udev is not really
useful, but also simplifies things and reduces round-trips in the non-container
case.
Diffstat (limited to 'src/udev')
-rw-r--r-- | src/udev/net/link-config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/net/link-config.c b/src/udev/net/link-config.c index 0c563b2db5..8215c40d5d 100644 --- a/src/udev/net/link-config.c +++ b/src/udev/net/link-config.c @@ -238,7 +238,7 @@ int link_config_get(link_config_ctx *ctx, struct udev_device *device, link_confi if (net_match_config(link->match_mac, link->match_path, link->match_driver, link->match_type, NULL, link->match_host, link->match_virt, link->match_kernel, link->match_arch, - udev_device_get_sysattr_value(device, "address"), + ether_aton(udev_device_get_sysattr_value(device, "address")), udev_device_get_property_value(device, "ID_PATH"), udev_device_get_driver(udev_device_get_parent(device)), udev_device_get_property_value(device, "ID_NET_DRIVER"), |