Lines Matching refs:data_len
373 size_t *data_len) { in sd_dhcp_client_get_client_id() argument
378 assert_return(data_len, -EINVAL); 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()
387 *data_len = 0; in sd_dhcp_client_get_client_id()
397 size_t data_len) { in sd_dhcp_client_set_client_id() argument
405 assert_return(data_len > 0 && data_len <= MAX_CLIENT_ID_LEN, -EINVAL); in sd_dhcp_client_set_client_id()
407 if (client->client_id_len == data_len + sizeof(client->client_id.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()
417 if ((type == ARPHRD_ETHER && data_len != ETH_ALEN) || in sd_dhcp_client_set_client_id()
418 (type == ARPHRD_INFINIBAND && data_len != 8)) in sd_dhcp_client_set_client_id()
421 type, data_len); 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()