Lines Matching refs:client_id
94 sd_dhcp_client_id client_id; member
172 const sd_dhcp_client_id *client_id = data; in sd_dhcp_client_id_to_string() local
184 switch (client_id->type) { in sd_dhcp_client_id_to_string()
186 if (utf8_is_printable((char *) client_id->gen.data, len)) in sd_dhcp_client_id_to_string()
187 r = asprintf(&t, "%.*s", (int) len, client_id->gen.data); in sd_dhcp_client_id_to_string()
196 client_id->eth.haddr[0], in sd_dhcp_client_id_to_string()
197 client_id->eth.haddr[1], in sd_dhcp_client_id_to_string()
198 client_id->eth.haddr[2], in sd_dhcp_client_id_to_string()
199 client_id->eth.haddr[3], in sd_dhcp_client_id_to_string()
200 client_id->eth.haddr[4], in sd_dhcp_client_id_to_string()
201 client_id->eth.haddr[5]); in sd_dhcp_client_id_to_string()
210 uint32_t iaid = be32toh(client_id->ns.iaid); in sd_dhcp_client_id_to_string()
211 uint16_t duid_type = be16toh(client_id->ns.duid.type); in sd_dhcp_client_id_to_string()
381 *type = client->client_id.type; in sd_dhcp_client_get_client_id()
382 *data = client->client_id.raw.data; in sd_dhcp_client_get_client_id()
383 *data_len = client->client_id_len - sizeof(client->client_id.type); in sd_dhcp_client_get_client_id()
407 if (client->client_id_len == data_len + sizeof(client->client_id.type) && in sd_dhcp_client_set_client_id()
408 client->client_id.type == type && in sd_dhcp_client_set_client_id()
409 memcmp(&client->client_id.raw.data, data, data_len) == 0) in sd_dhcp_client_set_client_id()
430 client->client_id.type = type; in sd_dhcp_client_set_client_id()
431 memcpy(&client->client_id.raw.data, data, data_len); in sd_dhcp_client_set_client_id()
432 client->client_id_len = data_len + sizeof (client->client_id.type); in sd_dhcp_client_set_client_id()
471 zero(client->client_id); in dhcp_client_set_iaid_duid_internal()
472 client->client_id.type = 255; in dhcp_client_set_iaid_duid_internal()
476 client->client_id.ns.iaid = htobe32(iaid); in dhcp_client_set_iaid_duid_internal()
482 &client->client_id.ns.iaid); in dhcp_client_set_iaid_duid_internal()
489 client->client_id.ns.duid.type = htobe16(duid_type); in dhcp_client_set_iaid_duid_internal()
490 memcpy(&client->client_id.ns.duid.raw.data, duid, duid_len); in dhcp_client_set_iaid_duid_internal()
491 len = sizeof(client->client_id.ns.duid.type) + duid_len; in dhcp_client_set_iaid_duid_internal()
496 &client->client_id.ns.duid, &len); in dhcp_client_set_iaid_duid_internal()
507 client->client_id_len = sizeof(client->client_id.type) + len + in dhcp_client_set_iaid_duid_internal()
508 (iaid_append ? sizeof(client->client_id.ns.iaid) : 0); in dhcp_client_set_iaid_duid_internal()
852 client->client_id.type = 255; in client_message_init()
857 &client->client_id.ns.iaid); in client_message_init()
861 … r = dhcp_identifier_set_duid_en(client->test_mode, &client->client_id.ns.duid, &duid_len); in client_message_init()
865 …client->client_id_len = sizeof(client->client_id.type) + sizeof(client->client_id.ns.iaid) + duid_… in client_message_init()
874 &client->client_id); in client_message_init()
1519 (uint8_t *) &client->client_id, in client_handle_offer()
1613 (uint8_t *) &client->client_id, in client_handle_ack()