Home
last modified time | relevance | path

Searched refs:data_len (Results 1 – 10 of 10) sorted by relevance

/systemd-251/src/fuzz/
Dfuzz-compress.c28 const size_t data_len = size - offsetof(header, data); in LLVMFuzzerTestOneInput() local
39 data_len); in LLVMFuzzerTestOneInput()
48 r = compress_blob_explicit(alg, h->data, data_len, buf, size, &csize); in LLVMFuzzerTestOneInput()
54 log_debug("Compressed %zu bytes to → %zu bytes", data_len, csize); in LLVMFuzzerTestOneInput()
63 size_t sw_len = MIN(data_len - 1, h->sw_len); in LLVMFuzzerTestOneInput()
/systemd-251/src/test/
Dtest-compress.c54 size_t data_len, in test_compress_decompress() argument
65 r = compress(data, data_len, compressed, sizeof(compressed), &csize); in test_compress_decompress()
75 assert_se(memcmp(decompressed, data, data_len) == 0); in test_compress_decompress()
98 size_t data_len, in test_decompress_startswith() argument
114 r = compress(data, data_len, compressed, BUFSIZE_1, &csize); in test_decompress_startswith()
121 r = compress(data, data_len, compressed, BUFSIZE_2, &csize); in test_decompress_startswith()
/systemd-251/src/libsystemd-network/
Dsd-lldp-tx.c249 …nd_tlv_header(uint8_t *packet, size_t packet_size, size_t *offset, uint8_t type, size_t data_len) { in packet_append_tlv_header() argument
268 if (data_len >= 512) in packet_append_tlv_header()
271 if (packet_size < 2 + data_len) in packet_append_tlv_header()
274 if (*offset > packet_size - 2 - data_len) in packet_append_tlv_header()
277 packet[(*offset)++] = (type << 1) | !!(data_len >> 8); in packet_append_tlv_header()
278 packet[(*offset)++] = data_len & (size_t) UINT8_MAX; in packet_append_tlv_header()
Dsd-dhcp-client.c373 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()
[all …]
Ddhcp6-option.c527 int dhcp6_option_parse_status(const uint8_t *data, size_t data_len, char **ret_status_message) { in dhcp6_option_parse_status() argument
530 if (data_len < sizeof(uint16_t)) in dhcp6_option_parse_status()
538 … msg = cescape_length((const char*) (data + sizeof(uint16_t)), data_len - sizeof(uint16_t)); in dhcp6_option_parse_status()
555 size_t data_len; in dhcp6_option_parse_ia_options() local
558 r = dhcp6_option_parse(buf, buflen, &offset, &code, &data_len, &data); in dhcp6_option_parse_ia_options()
566 r = dhcp6_option_parse_status(data, data_len, &msg); in dhcp6_option_parse_ia_options()
Dsd-dhcp-lease.c294 int sd_dhcp_lease_get_vendor_specific(sd_dhcp_lease *lease, const void **data, size_t *data_len) { in sd_dhcp_lease_get_vendor_specific() argument
297 assert_return(data_len, -EINVAL); in sd_dhcp_lease_get_vendor_specific()
303 *data_len = lease->vendor_specific_len; in sd_dhcp_lease_get_vendor_specific()
969 size_t client_id_len, data_len; in dhcp_lease_save() local
1096 r = sd_dhcp_lease_get_vendor_specific(lease, &data, &data_len); in dhcp_lease_save()
1100 option_hex = hexmem(data, data_len); in dhcp_lease_save()
Ddhcp6-option.h90 int dhcp6_option_parse_status(const uint8_t *data, size_t data_len, char **ret_status_message);
/systemd-251/src/systemd/
Dsd-dhcp-client.h258 size_t data_len);
283 size_t *data_len);
Dsd-dhcp-lease.h72 int sd_dhcp_lease_get_vendor_specific(sd_dhcp_lease *lease, const void **data, size_t *data_len);
/systemd-251/src/basic/linux/
Dbtrfs_tree.h618 __le16 data_len; member