Home
last modified time | relevance | path

Searched refs:prefix_len (Results 1 – 11 of 11) sorted by relevance

/systemd-251/src/basic/
Dcompress.c342 size_t prefix_len, in decompress_startswith_xz() argument
362 if (!(greedy_realloc(buffer, ALIGN_8(prefix_len + 1), 1))) in decompress_startswith_xz()
379 if (allocated - s.avail_out >= prefix_len + 1) in decompress_startswith_xz()
380 return memcmp(*buffer, prefix, prefix_len) == 0 && in decompress_startswith_xz()
381 ((const uint8_t*) *buffer)[prefix_len] == extra; in decompress_startswith_xz()
405 size_t prefix_len, in decompress_startswith_lz4() argument
423 if (!(greedy_realloc(buffer, ALIGN_8(prefix_len + 1), 1))) in decompress_startswith_lz4()
431 prefix_len + 1, in decompress_startswith_lz4()
438 if (r < 0 || (size_t) r < prefix_len + 1) { in decompress_startswith_lz4()
458 if (size < prefix_len + 1) in decompress_startswith_lz4()
[all …]
Dcompress.h39 const void *prefix, size_t prefix_len,
43 const void *prefix, size_t prefix_len,
47 const void *prefix, size_t prefix_len,
52 const void *prefix, size_t prefix_len,
/systemd-251/src/libsystemd-network/
Dsd-lldp-tx.c288 size_t prefix_len, in packet_append_prefixed_string() argument
297 assert(prefix_len == 0 || prefix); in packet_append_prefixed_string()
305 if (len > SIZE_MAX - prefix_len) in packet_append_prefixed_string()
308 r = packet_append_tlv_header(packet, packet_size, offset, type, prefix_len + len); in packet_append_prefixed_string()
312 memcpy_safe(packet + *offset, prefix, prefix_len); in packet_append_prefixed_string()
313 *offset += prefix_len; in packet_append_prefixed_string()
Dtest-ndisc-rs.c105 unsigned prefix_len; in router_dump() local
121 assert_se(sd_ndisc_router_prefix_get_prefixlen(rt, &prefix_len) >= 0); in router_dump()
122 log_info("Prefix Length: %u", prefix_len); in router_dump()
/systemd-251/src/systemd/
Dsd-dhcp6-lease.h42 uint8_t *prefix_len,
/systemd-251/src/libsystemd/sd-device/
Ddevice-enumerator.c278 size_t prefix_len; in sound_device_compare() local
298 prefix_len = sound_a - devpath_a; in sound_device_compare()
300 if (!strneq(devpath_a, devpath_b, prefix_len)) in sound_device_compare()
303 sound_b = devpath_b + prefix_len; in sound_device_compare()
/systemd-251/src/network/
Dnetworkd-radv.h67 int radv_add_prefix(Link *link, const struct in6_addr *prefix, uint8_t prefix_len,
Dnetworkd-radv.c659 uint8_t prefix_len, in radv_add_prefix() argument
675 r = sd_radv_prefix_set_prefix(p, prefix, prefix_len); in radv_add_prefix()
/systemd-251/src/test/
Dtest-compress.c41 const void *prefix, size_t prefix_len,
/systemd-251/src/basic/linux/
Drtnetlink.h567 unsigned char prefix_len; member
/systemd-251/src/core/
Dload-fragment.c6282 size_t prefix_len = dot - i; in unit_dump_config_items() local
6284 if (!prev || !strneq(prev, i, prefix_len+1)) { in unit_dump_config_items()
6288 fprintf(f, "[%.*s]\n", (int) prefix_len, i); in unit_dump_config_items()