[systemd-devel] [PATCH] sd-dhcp-client: Sets broadcast flag to 1
Patrik Flykt
Patrik.Flykt at linux.intel.com
Fri May 30 02:25:06 PDT 2014
On Thu, 2014-05-29 at 18:18 +0100, Tom Gundersen wrote:
> + if (link->udev_device) {
> + const char *l2;
> +
> + l2 = udev_device_get_sysattr_value(link->udev_device, "layer2");
> + if (l2) {
> + unsigned layer2;
> +
> + r = safe_atou(l2, &layer2);
> + if (r < 0)
> + return r;
> +
> + if (!layer2) {
> + r = sd_dhcp_client_request_broadcast(link->dhcp_client);
> + if (r < 0)
> + return r;
> + }
Am I now missing something if I can't find the
file /sys/class/net/<device>/device/layer2 for a regular networking
interface? The above enables broadcast only for virtual interfaces,
right?
Cheers,
Patrik
More information about the systemd-devel
mailing list