Home
last modified time | relevance | path

Searched refs:memcmp (Results 1 – 25 of 93) sorted by relevance

1234

/systemd-251/src/test/ !
Dtest-unaligned.c35 assert_se(memcmp(&scratch[0], &data[0], sizeof(uint16_t)) == 0); in TEST()
38 assert_se(memcmp(&scratch[1], &data[1], sizeof(uint16_t)) == 0); in TEST()
42 assert_se(memcmp(&scratch[0], &data[0], sizeof(uint32_t)) == 0); in TEST()
45 assert_se(memcmp(&scratch[1], &data[1], sizeof(uint32_t)) == 0); in TEST()
48 assert_se(memcmp(&scratch[2], &data[2], sizeof(uint32_t)) == 0); in TEST()
51 assert_se(memcmp(&scratch[3], &data[3], sizeof(uint32_t)) == 0); in TEST()
55 assert_se(memcmp(&scratch[0], &data[0], sizeof(uint64_t)) == 0); in TEST()
58 assert_se(memcmp(&scratch[1], &data[1], sizeof(uint64_t)) == 0); in TEST()
61 assert_se(memcmp(&scratch[2], &data[2], sizeof(uint64_t)) == 0); in TEST()
64 assert_se(memcmp(&scratch[3], &data[3], sizeof(uint64_t)) == 0); in TEST()
[all …]
Dtest-escape.c119 assert_se(memcmp(unescaped, "\0\0\0", 3) == 0); in TEST()
123 assert_se(memcmp(unescaped, "\0\0\0", 3) == 0); in TEST()
127 assert_se(memcmp(unescaped, "\0\0\0", 3) == 0); in TEST()
131 assert_se(memcmp(unescaped, "\0\0\0", 3) == 0); in TEST()
Dtest-xattr-util.c38 assert_se(memcmp(value, "bar", 3) == 0); in TEST()
42 assert_se(memcmp(value, "bar", 3) == 0); in TEST()
Dtest-siphash24.c87 assert_se(memcmp(&state1, &state2, sizeof state1) == 0); in TEST()
102 assert_se(memcmp(&state1, &state2, sizeof state1) == 0); in TEST()
Dtest-fileio.c952 assert_se(memcmp(buf, rbuf, rbuf_size) == 0); in TEST()
957 assert_se(memcmp(buf, rbuf, rbuf_size) == 0); in TEST()
964 assert_se(memcmp(buf, rbuf, rbuf_size) == 0); in TEST()
971 assert_se(memcmp(buf+47, rbuf, rbuf_size) == 0); in TEST()
976 assert_se(memcmp(buf, rbuf, rbuf_size) == 0); in TEST()
981 assert_se(memcmp(buf + 1234, rbuf, rbuf_size) == 0); in TEST()
986 assert_se(memcmp(buf + 2345, rbuf, rbuf_size) == 0); in TEST()
991 assert_se(memcmp(buf + 4700, rbuf, rbuf_size) == 0); in TEST()
Dtest-data-fd-util.c45 assert_se(memcmp(rbuffer, wbuffer, sizeof(rbuffer)) == 0); in test_acquire_data_fd_one()
78 assert_se(memcmp(a, b, x) == 0); in assert_equal_fd()
Dtest-utf8.c180 assert_se(memcmp(a, utf8, sizeof(utf8)) == 0); in TEST()
190 assert_se(memcmp(a, utf8, sizeof(utf8)) == 0); in TEST()
Dtest-io-util.c26 assert_se(memcmp(buffer, check, n) == 0); in test_sparse_write_one()
/systemd-251/src/libsystemd-network/ !
Dtest-dhcp-client.c173 assert_se(memcmp((uint8_t*) option + 1, &iaid, sizeof(iaid)) == 0); in check_options()
174 assert_se(memcmp((uint8_t*) option + 5, &duid, duid_len) == 0); in check_options()
220 assert_se(memcmp(discover->dhcp.chaddr, &mac_addr, ETH_ALEN) == 0); in dhcp_network_send_raw_socket()
408 assert_se(memcmp(&addr.s_addr, &test_addr_acq_ack[44], in test_addr_acq_acquired()
412 assert_se(memcmp(&addr.s_addr, &test_addr_acq_ack[285], in test_addr_acq_acquired()
416 assert_se(memcmp(&addrs[0].s_addr, &test_addr_acq_ack[308], in test_addr_acq_acquired()
Dtest-lldp-rx.c118 assert_se(!memcmp(data, "\x00\x01\x02\x03\x04\x05", ETH_ALEN)); in test_receive_basic_packet()
123 assert_se(!memcmp(data, "1/3", 3)); in test_receive_basic_packet()
346 assert_se(memcmp(data, expected[2 * i], expected_length) == 0); in test_multiple_neighbors_sorted()
352 assert_se(memcmp(data, expected[2 * i + 1], expected_length) == 0); in test_multiple_neighbors_sorted()
Dtest-dhcp6-client.c252 assert_se(memcmp(packet, result, sizeof(packet)) == 0); in TEST()
365 assert_se(memcmp(&ia->header.id, &option4[4], 4) == 0); in TEST()
366 assert_se(memcmp(&ia->header.lifetime_t1, &option4[8], 4) == 0); in TEST()
367 assert_se(memcmp(&ia->header.lifetime_t2, &option4[12], 4) == 0); in TEST()
735 assert_se(memcmp(msg, msg_information_request, len - sizeof(be16_t)) == 0); in test_client_verify_information_request()
743 assert_se(memcmp(msg, msg_solicit, len - sizeof(be16_t)) == 0); in test_client_verify_solicit()
752 …assert_se(memcmp(msg->options, msg_request + offsetof(DHCP6Message, options), len - offsetof(DHCP6… in test_client_verify_request()
/systemd-251/src/resolve/ !
Dtest-resolved-stream.c75 assert_se(memcmp(expected_question, actual_question, question_size) == 0); in receive_and_check_question()
285 assert_se(memcmp(DNS_PACKET_DATA(received_packets[0]), in test_dns_stream()
296 assert_se(memcmp(DNS_PACKET_DATA(received_packets[0]), in test_dns_stream()
312 assert_se(memcmp(DNS_PACKET_DATA(received_packets[0]), in test_dns_stream()
314 assert_se(memcmp(DNS_PACKET_DATA(received_packets[1]), in test_dns_stream()
Dtest-resolved-etc-hosts.c32 !memcmp(&(_addr)->address.in, &(struct in_addr) { .s_addr = (_address) }, 4))
36 !memcmp(&(_addr)->address.in6, &(struct in6_addr) { .s6_addr = __VA_ARGS__}, 16) )
/systemd-251/src/udev/mtd_probe/ !
Dprobe_smartmedia.c90 if (memcmp(cis_buffer, cis_signature, sizeof(cis_signature)) != 0 && in probe_smart_media()
91 memcmp(cis_buffer + SM_SMALL_PAGE, cis_signature, sizeof(cis_signature)) != 0) in probe_smart_media()
/systemd-251/src/shared/ !
Dacpi-fpdt.c86 if (memcmp(tbl->signature, "FPDT", 4) != 0) in acpi_get_boot_usec()
116 if (memcmp(hbrec.signature, "FBPT", 4) != 0) in acpi_get_boot_usec()
/systemd-251/src/fundamental/ !
Dstring-util-fundamental.h19 #define memcmp(a, b, n) CompareMem(a, b, n) macro
80 if (memcmp(p, token, n) != 0) in memory_startswith()
/systemd-251/src/import/ !
Dimport-compress.c54 if (memcmp(data, xz_signature, sizeof(xz_signature)) == 0) { in import_uncompress_detect()
63 } else if (memcmp(data, gzip_signature, sizeof(gzip_signature)) == 0) { in import_uncompress_detect()
71 } else if (memcmp(data, bzip2_signature, sizeof(bzip2_signature)) == 0) { in import_uncompress_detect()
/systemd-251/src/basic/ !
Dether-addr-util.c46 return memcmp(a->bytes, b->bytes, a->length); in hw_addr_compare()
96 return memcmp(a, b, ETH_ALEN); in ether_addr_compare()
Dmemory-util.c39 return memcmp(data, p + 16, length) == 0; in memeqbyte()
Dcompress.c380 return memcmp(*buffer, prefix, prefix_len) == 0 && in decompress_startswith_xz()
449 if (memcmp(*buffer, prefix, r) != 0) in decompress_startswith_lz4()
462 return memcmp(*buffer, prefix, prefix_len) == 0 && in decompress_startswith_lz4()
513 return memcmp(*buffer, prefix, prefix_len) == 0 && in decompress_startswith_zstd()
Dcgroup-util.c1138 if (memcmp(p + n - 6, ".slice", 6) == 0) { in valid_slice_name()
1220 if (memcmp(p, "session-", 8) == 0 && memcmp(p + n - 6, ".scope", 6) == 0) { in skip_session()
1257 if (memcmp(p, "user@", 5) == 0 && memcmp(p + n - 8, ".service", 8) == 0) { in skip_user_manager()
1558 if (memcmp(p, n, l) != 0) in cg_escape()
/systemd-251/src/nss-myhostname/ !
Dnss-myhostname.c466 if (memcmp(addr, LOCALADDRESS_IPV6, 16) == 0) { in _nss_myhostname_gethostbyaddr2_r()
475 if (memcmp(addr, &a->address, FAMILY_ADDRESS_SIZE(af)) == 0) in _nss_myhostname_gethostbyaddr2_r()
482 if (memcmp(addr, &a->address, FAMILY_ADDRESS_SIZE(af)) == 0) { in _nss_myhostname_gethostbyaddr2_r()
/systemd-251/src/libsystemd/sd-bus/ !
Dtest-bus-marshal.c257 assert_se(memcmp(first, second, first_size) == 0); in main()
329 assert_se(memcmp(integer_array, return_array, sz) == 0); in main()
367 assert_se(memcmp(first, third, third_size) == 0); in main()
Dbus-socket.c194 if (memcmp(b->rbuffer, "DATA", 4)) in bus_socket_auth_verify_client()
203 if (memcmp(b->rbuffer, "OK ", 3)) in bus_socket_auth_verify_client()
213 if (memcmp(d + 2, "OK ", 3)) in bus_socket_auth_verify_client()
241 memcmp(e + 2, "AGREE_UNIX_FD", in bus_socket_auth_verify_client()
261 return memcmp(s, line, l) == 0; in line_equals()
/systemd-251/src/libsystemd/sd-daemon/ !
Dsd-daemon.c353 return memcmp(sockaddr.in6.sin6_addr.s6_addr, in->sin6_addr.s6_addr, in sd_is_socket_sockaddr()
390 memcmp(path, sockaddr.un.sun_path, length+1) == 0; in sd_is_socket_unix()
395 memcmp(path, sockaddr.un.sun_path, length) == 0; in sd_is_socket_unix()

1234