Not sure if -ENOENT is the correct return value for when no persistent network
name is set, but couldn't think of anything better.
if (!name) {
name = udev_device_get_property_value(device, "ID_NET_NAME_PATH");
if (!name)
if (!name) {
name = udev_device_get_property_value(device, "ID_NET_NAME_PATH");
if (!name)
}
}
/* fetch some persistent data unique to this machine */
r = sd_id128_get_machine(&machine);
if (r < 0)
}
}
/* fetch some persistent data unique to this machine */
r = sd_id128_get_machine(&machine);
if (r < 0)
/* combine the data */
seed_str = strappenda(name, sd_id128_to_string(machine, machineid_buf));
/* combine the data */
seed_str = strappenda(name, sd_id128_to_string(machine, machineid_buf));