Home
last modified time | relevance | path

Searched refs:client_id (Results 1 – 14 of 14) sorted by relevance

/systemd-251/src/libsystemd-network/
Dsd-dhcp-server.c36 … hashmap_remove_value(lease->server->bound_leases_by_client_id, &lease->client_id, lease); in dhcp_lease_free()
38 … hashmap_remove_value(lease->server->static_leases_by_client_id, &lease->client_id, lease); in dhcp_lease_free()
41 free(lease->client_id.data); in dhcp_lease_free()
764 free_and_replace(req->client_id.data, data); in parse_request()
765 req->client_id.length = len; in parse_request()
788 free(req->client_id.data); in dhcp_request_free()
804 if (!req->client_id.data) { in ensure_sane_request()
817 req->client_id.length = message->hlen + 1; in ensure_sane_request()
818 req->client_id.data = data; in ensure_sane_request()
826 if (!req->client_id.data) in ensure_sane_request()
[all …]
Dsd-dhcp-client.c94 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()
[all …]
Dfuzz-dhcp-server.c27 lease->client_id.length = 2; in add_lease()
28 assert_se(lease->client_id.data = malloc(2)); in add_lease()
29 lease->client_id.data[0] = 2; in add_lease()
30 lease->client_id.data[1] = i; in add_lease()
37 …sure_put(&server->bound_leases_by_client_id, &dhcp_lease_hash_ops, &lease->client_id, lease) >= 0); in add_lease()
Dsd-dhcp-lease.c330 free(lease->client_id); in dhcp_lease_free()
968 const void *client_id, *data; in dhcp_lease_save() local
1086 r = sd_dhcp_lease_get_client_id(lease, &client_id, &client_id_len); in dhcp_lease_save()
1090 client_id_hex = hexmem(client_id, client_id_len); in dhcp_lease_save()
1382 r = unhexmem(client_id_hex, SIZE_MAX, &lease->client_id, &lease->client_id_len); in dhcp_lease_load()
1438 int sd_dhcp_lease_get_client_id(sd_dhcp_lease *lease, const void **client_id, size_t *client_id_len… in sd_dhcp_lease_get_client_id() argument
1440 assert_return(client_id, -EINVAL); in sd_dhcp_lease_get_client_id()
1443 if (!lease->client_id) in sd_dhcp_lease_get_client_id()
1446 *client_id = lease->client_id; in sd_dhcp_lease_get_client_id()
1452 int dhcp_lease_set_client_id(sd_dhcp_lease *lease, const void *client_id, size_t client_id_len) { in dhcp_lease_set_client_id() argument
[all …]
Ddhcp-lease-internal.h65 void *client_id; member
90 int dhcp_lease_set_client_id(sd_dhcp_lease *lease, const void *client_id, size_t client_id_len);
Ddhcp-server-internal.h35 DHCPClientId client_id; member
99 DHCPClientId client_id; member
Dtest-dhcp6-client.c71 static const uint8_t client_id[] = { CLIENT_ID_BYTES }; variable
766 assert_se(memcmp_nn(id, len, client_id, sizeof(client_id)) == 0); in test_lease_common()
/systemd-251/src/network/
Dnetworkd-dhcp-server-static-lease.c20 free(static_lease->client_id); in dhcp_static_lease_free()
83 if (static_lease->client_id_size == 0 || !static_lease->client_id) in static_lease_verify()
182 lease->client_id = mfree(lease->client_id); in config_parse_dhcp_static_lease_hwaddr()
207 free_and_replace(lease->client_id, c); in config_parse_dhcp_static_lease_hwaddr()
Dnetworkd-dhcp-server-bus.c48 … r = sd_bus_message_append_array(reply, 'y', lease->client_id.data, lease->client_id.length); in property_get_leases()
Dnetworkd-dhcp-server-static-lease.h18 uint8_t *client_id; member
Dnetworkctl.c1334 const void *client_id, *addr, *gtw, *hwaddr; in dump_dhcp_leases() local
1343 r = sd_bus_message_read_array(reply, 'y', &client_id, &client_id_sz); in dump_dhcp_leases()
1363 r = sd_dhcp_client_id_to_string(client_id, client_id_sz, &id); in dump_dhcp_leases()
2234 const void *client_id; in link_status_one() local
2248 r = sd_dhcp_lease_get_client_id(lease, &client_id, &client_id_len); in link_status_one()
2252 r = sd_dhcp_client_id_to_string(client_id, client_id_len, &id); in link_status_one()
Dnetworkd-dhcp-server.c523 …t_static_lease(link->dhcp_server, &static_lease->address, static_lease->client_id, static_lease->c… in dhcp4_server_configure()
/systemd-251/src/systemd/
Dsd-dhcp-lease.h73 int sd_dhcp_lease_get_client_id(sd_dhcp_lease *lease, const void **client_id, size_t *client_id_len…
Dsd-dhcp-server.h83 …c_lease(sd_dhcp_server *server, const struct in_addr *address, uint8_t *client_id, size_t client_i…