Lines Matching refs:duid
184 return dhcp_identifier_set_duid_en(client->test_mode, &client->duid, &client->duid_len); in client_ensure_duid()
195 const void *duid, in dhcp6_client_set_duid_internal() argument
202 assert_return(duid_len == 0 || duid, -EINVAL); in dhcp6_client_set_duid_internal()
204 if (duid) { in dhcp6_client_set_duid_internal()
214 client->duid.type = htobe16(duid_type); in dhcp6_client_set_duid_internal()
215 memcpy(&client->duid.raw.data, duid, duid_len); in dhcp6_client_set_duid_internal()
216 client->duid_len = sizeof(client->duid.type) + duid_len; in dhcp6_client_set_duid_internal()
220 … client->arp_type, llt_time, client->test_mode, &client->duid, &client->duid_len); in dhcp6_client_set_duid_internal()
237 const void *duid, in sd_dhcp6_client_set_duid() argument
239 return dhcp6_client_set_duid_internal(client, duid_type, duid, duid_len, 0); in sd_dhcp6_client_set_duid()
250 char **duid) { in sd_dhcp6_client_duid_as_string() argument
257 assert_return(duid, -EINVAL); in sd_dhcp6_client_duid_as_string()
259 v = duid_type_to_string(be16toh(client->duid.type)); in sd_dhcp6_client_duid_as_string()
265 r = asprintf(&s, "%0x", client->duid.type); in sd_dhcp6_client_duid_as_string()
270 t = hexmem(&client->duid.raw.data, client->duid_len); in sd_dhcp6_client_duid_as_string()
278 *duid = TAKE_PTR(p); in sd_dhcp6_client_duid_as_string()
766 client->duid_len, &client->duid); in dhcp6_client_send_message()