sd-dhcp6-client: use hw_addr_set()

This commit is contained in:
Yu Watanabe
2022-08-06 04:53:36 +09:00
parent 7e5c25b244
commit e0ead13088
+1 -2
View File
@@ -116,9 +116,8 @@ int sd_dhcp6_client_set_mac(
return 0;
}
memcpy(client->hw_addr.bytes, addr, addr_len);
client->hw_addr.length = addr_len;
client->arp_type = arp_type;
hw_addr_set(&client->hw_addr, addr, addr_len);
return 0;
}