Home
last modified time | relevance | path

Searched refs:duid_len (Results 1 – 9 of 9) sorted by relevance

/systemd-251/src/libsystemd-network/
Ddhcp-identifier.c31 int dhcp_validate_duid_len(DUIDType duid_type, size_t duid_len, bool strict) { in dhcp_validate_duid_len() argument
35 if (duid_len > MAX_DUID_LEN) in dhcp_validate_duid_len()
45 if (duid_len <= sizeof(d.llt)) in dhcp_validate_duid_len()
49 if (duid_len != sizeof(d.en)) in dhcp_validate_duid_len()
53 if (duid_len <= sizeof(d.ll)) in dhcp_validate_duid_len()
57 if (duid_len != sizeof(d.uuid)) in dhcp_validate_duid_len()
Dsd-dhcp6-client.c181 if (client->duid_len != 0) in client_ensure_duid()
184 return dhcp_identifier_set_duid_en(client->test_mode, &client->duid, &client->duid_len); in client_ensure_duid()
196 size_t duid_len, in dhcp6_client_set_duid_internal() argument
202 assert_return(duid_len == 0 || duid, -EINVAL); in dhcp6_client_set_duid_internal()
205 r = dhcp_validate_duid_len(duid_type, duid_len, true); in dhcp6_client_set_duid_internal()
207 r = dhcp_validate_duid_len(duid_type, duid_len, false); 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()
238 size_t duid_len) { in sd_dhcp6_client_set_duid() argument
[all …]
Dtest-dhcp-client.c164 size_t duid_len; in check_options() local
166 … assert_se(dhcp_identifier_set_duid_en(/* test_mode = */ true, &duid, &duid_len) >= 0); in check_options()
169 assert_se(len == sizeof(uint8_t) + sizeof(uint32_t) + duid_len); in check_options()
174 assert_se(memcmp((uint8_t*) option + 5, &duid, duid_len) == 0); in check_options()
Dsd-dhcp-client.c455 size_t duid_len, in dhcp_client_set_iaid_duid_internal() argument
463 assert_return(duid_len == 0 || duid, -EINVAL); in dhcp_client_set_iaid_duid_internal()
466 r = dhcp_validate_duid_len(duid_type, duid_len, true); 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()
527 size_t duid_len) { in sd_dhcp_client_set_iaid_duid() argument
528 …urn dhcp_client_set_iaid_duid_internal(client, true, iaid_set, iaid, duid_type, duid, duid_len, 0); in sd_dhcp_client_set_iaid_duid()
543 size_t duid_len) { in sd_dhcp_client_set_duid() argument
544 … return dhcp_client_set_iaid_duid_internal(client, false, false, 0, duid_type, duid, duid_len, 0); in sd_dhcp_client_set_duid()
850 size_t duid_len; in client_message_init() local
[all …]
Ddhcp-identifier.h57 int dhcp_validate_duid_len(DUIDType duid_type, size_t duid_len, bool strict);
Ddhcp6-internal.h65 size_t duid_len; member
Dsd-dhcp6-lease.c624 if (memcmp_nn(clientid, clientid_len, &client->duid, client->duid_len) != 0) in dhcp6_lease_parse_message()
/systemd-251/src/systemd/
Dsd-dhcp-client.h265 size_t duid_len);
275 size_t duid_len);
Dsd-dhcp6-client.h217 size_t duid_len);