Home
last modified time | relevance | path

Searched refs:duid_type (Results 1 – 7 of 7) sorted by relevance

/systemd-251/src/libsystemd-network/
Ddhcp-identifier.c29 DEFINE_STRING_TABLE_LOOKUP_TO_STRING(duid_type, DUIDType);
31 int dhcp_validate_duid_len(DUIDType duid_type, size_t duid_len, bool strict) { in dhcp_validate_duid_len() argument
43 switch (duid_type) { in dhcp_validate_duid_len()
177 DUIDType duid_type, in dhcp_identifier_set_duid() argument
186 switch (duid_type) { in dhcp_identifier_set_duid()
Ddhcp-identifier.h57 int dhcp_validate_duid_len(DUIDType duid_type, size_t duid_len, bool strict);
60 DUIDType duid_type,
Dsd-dhcp6-client.c194 DUIDType duid_type, in dhcp6_client_set_duid_internal() argument
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()
211 … log_dhcp6_client(client, "Using DUID of type %u of incorrect length, proceeding.", duid_type); in dhcp6_client_set_duid_internal()
214 client->duid.type = htobe16(duid_type); in dhcp6_client_set_duid_internal()
219 … r = dhcp_identifier_set_duid(duid_type, client->hw_addr.bytes, client->hw_addr.length, in dhcp6_client_set_duid_internal()
225 duid_type_to_string(duid_type)); in dhcp6_client_set_duid_internal()
228 duid_type_to_string(duid_type)); in dhcp6_client_set_duid_internal()
236 uint16_t duid_type, 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()
Dsd-dhcp-client.c211 uint16_t duid_type = be16toh(client_id->ns.duid.type); in sd_dhcp_client_id_to_string() local
212 if (dhcp_validate_duid_len(duid_type, len - 6, true) < 0) in sd_dhcp_client_id_to_string()
453 DUIDType duid_type, in dhcp_client_set_iaid_duid_internal() argument
466 r = dhcp_validate_duid_len(duid_type, duid_len, true); in dhcp_client_set_iaid_duid_internal()
489 client->client_id.ns.duid.type = htobe16(duid_type); in dhcp_client_set_iaid_duid_internal()
494 r = dhcp_identifier_set_duid(duid_type, client->mac_addr, client->mac_addr_len, in dhcp_client_set_iaid_duid_internal()
501 duid_type_to_string(duid_type)); in dhcp_client_set_iaid_duid_internal()
504 duid_type_to_string(duid_type)); in dhcp_client_set_iaid_duid_internal()
525 uint16_t duid_type, in sd_dhcp_client_set_iaid_duid() argument
528 …return dhcp_client_set_iaid_duid_internal(client, true, iaid_set, iaid, duid_type, duid, duid_len,… in sd_dhcp_client_set_iaid_duid()
[all …]
/systemd-251/src/systemd/
Dsd-dhcp-client.h263 uint16_t duid_type,
273 uint16_t duid_type,
Dsd-dhcp6-client.h215 uint16_t duid_type,
/systemd-251/src/network/
Dnetworkd-dhcp-common.c997 DEFINE_PRIVATE_STRING_TABLE_LOOKUP_FROM_STRING(duid_type, DUIDType);