/systemd-251/src/fuzz/ |
D | fuzz-compress.c | 28 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/ |
D | test-compress.c | 54 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/ |
D | sd-lldp-tx.c | 249 …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()
|
D | sd-dhcp-client.c | 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() [all …]
|
D | dhcp6-option.c | 527 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()
|
D | sd-dhcp-lease.c | 294 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()
|
D | dhcp6-option.h | 90 int dhcp6_option_parse_status(const uint8_t *data, size_t data_len, char **ret_status_message);
|
/systemd-251/src/systemd/ |
D | sd-dhcp-client.h | 258 size_t data_len); 283 size_t *data_len);
|
D | sd-dhcp-lease.h | 72 int sd_dhcp_lease_get_vendor_specific(sd_dhcp_lease *lease, const void **data, size_t *data_len);
|
/systemd-251/src/basic/linux/ |
D | btrfs_tree.h | 618 __le16 data_len; member
|