chiark / gitweb /
sd-dhcp-client: support non-Ethernet hardware addresses
[elogind.git] / src / network / networkd-dhcp4.c
index e451af86433b84e3204a3319adc5a9fffb9eacaa..63bfa86f99a6cddb6df694f049e3f1f74892a477 100644 (file)
@@ -599,7 +599,9 @@ int dhcp4_configure(Link *link) {
         if (r < 0)
                 return r;
 
-        r = sd_dhcp_client_set_mac(link->dhcp_client, &link->mac);
+        r = sd_dhcp_client_set_mac(link->dhcp_client,
+                                   (const uint8_t *) &link->mac,
+                                   sizeof (link->mac), ARPHRD_ETHER);
         if (r < 0)
                 return r;