/systemd-251/src/basic/ |
D | in-addr-util.c | 469 if (prefixlen > FAMILY_ADDRESS_SIZE(family) * 8) in in_addr_prefix_to_string() 763 if (u > FAMILY_ADDRESS_SIZE(family) * 8) in in_addr_parse_prefixlen() 806 k = FAMILY_ADDRESS_SIZE(family) * 8; in in_addr_prefix_from_string() 852 k = FAMILY_ADDRESS_SIZE(family) * 8; in in_addr_prefix_from_string_auto_internal() 884 siphash24_compress(&a->address, FAMILY_ADDRESS_SIZE(a->family), state); in in_addr_data_hash_func() 897 return memcmp(&x->address, &y->address, FAMILY_ADDRESS_SIZE(x->family)); in in_addr_data_compare_func()
|
D | in-addr-util.h | 113 static inline size_t FAMILY_ADDRESS_SIZE(int family) { in FAMILY_ADDRESS_SIZE() function
|
D | ether-addr-util.c | 203 ret->length = FAMILY_ADDRESS_SIZE(family); in parse_hw_addr_full()
|
/systemd-251/src/nss-myhostname/ |
D | nss-myhostname.c | 203 alen = FAMILY_ADDRESS_SIZE(af); in fill_in_hostent() 443 if (len != FAMILY_ADDRESS_SIZE(af)) { 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/nss-resolve/ |
D | nss-resolve.c | 90 assert(sizeof(in6) == FAMILY_ADDRESS_SIZE(AF_INET6)); in ifindex_to_scopeid() 292 if (q.address_size != FAMILY_ADDRESS_SIZE(q.family)) { in _nss_resolve_gethostbyname4_r() 448 if (q.address_size != FAMILY_ADDRESS_SIZE(q.family)) { in _nss_resolve_gethostbyname3_r() 458 size_t alen = FAMILY_ADDRESS_SIZE(af); in _nss_resolve_gethostbyname3_r() 616 if (len != FAMILY_ADDRESS_SIZE(af)) { in _nss_resolve_gethostbyaddr2_r()
|
/systemd-251/src/libsystemd/sd-netlink/ |
D | netlink-util.c | 588 … if (attr->rta_len != RTA_LENGTH(FAMILY_ADDRESS_SIZE(family))) in rtattr_read_nexthop() 592 … memcpy(&m->gateway.address, RTA_DATA(attr), FAMILY_ADDRESS_SIZE(family)); in rtattr_read_nexthop() 608 … if (attr->rta_len != RTA_LENGTH(FAMILY_ADDRESS_SIZE(gw_family) + sizeof(gw_family))) in rtattr_read_nexthop() 611 … memcpy(&m->gateway, RTA_DATA(attr), FAMILY_ADDRESS_SIZE(gw_family) + sizeof(gw_family)); in rtattr_read_nexthop()
|
D | netlink-message.c | 467 r = add_rtattr(m, type, data, FAMILY_ADDRESS_SIZE(family)); in netlink_message_append_in_addr_union() 1020 if ((size_t) r < FAMILY_ADDRESS_SIZE(family)) in netlink_message_read_in_addr_union() 1024 memcpy(data, attr_data, FAMILY_ADDRESS_SIZE(family)); in netlink_message_read_in_addr_union()
|
/systemd-251/src/network/ |
D | networkd-route.c | 122 siphash24_compress(&route->dst, FAMILY_ADDRESS_SIZE(route->family), state); in route_hash_func() 125 siphash24_compress(&route->src, FAMILY_ADDRESS_SIZE(route->family), state); in route_hash_func() 129 … siphash24_compress(&route->gw, FAMILY_ADDRESS_SIZE(route->gw_family), state); in route_hash_func() 133 siphash24_compress(&route->prefsrc, FAMILY_ADDRESS_SIZE(route->family), state); in route_hash_func() 169 r = memcmp(&a->dst, &b->dst, FAMILY_ADDRESS_SIZE(a->family)); in route_compare_func() 177 r = memcmp(&a->src, &b->src, FAMILY_ADDRESS_SIZE(a->family)); in route_compare_func() 186 r = memcmp(&a->gw, &b->gw, FAMILY_ADDRESS_SIZE(a->family)); in route_compare_func() 195 r = memcmp(&a->prefsrc, &b->prefsrc, FAMILY_ADDRESS_SIZE(a->family)); in route_compare_func() 1077 …r = rtattr_append_attribute(rta, RTA_GATEWAY, &m->gateway.address, FAMILY_ADDRESS_SIZE(m->gateway.… in append_nexthop_one() 1081 rtnh->rtnh_len += RTA_SPACE(FAMILY_ADDRESS_SIZE(m->gateway.family)); in append_nexthop_one() [all …]
|
D | networkd-address.c | 278 siphash24_compress(&a->in_addr, FAMILY_ADDRESS_SIZE(a->family), state); in address_kernel_hash_func() 307 return memcmp(&a1->in_addr, &a2->in_addr, FAMILY_ADDRESS_SIZE(a1->family)); in address_kernel_compare_func() 330 siphash24_compress(&a->in_addr, FAMILY_ADDRESS_SIZE(a->family), state); in address_hash_func() 331 siphash24_compress(&a->in_addr_peer, FAMILY_ADDRESS_SIZE(a->family), state); in address_hash_func() 357 r = memcmp(&a1->in_addr, &a2->in_addr, FAMILY_ADDRESS_SIZE(a1->family)); in address_compare_func() 361 r = memcmp(&a1->in_addr_peer, &a2->in_addr_peer, FAMILY_ADDRESS_SIZE(a1->family)); in address_compare_func()
|
D | networkd-neighbor.c | 99 … siphash24_compress(&neighbor->in_addr, FAMILY_ADDRESS_SIZE(neighbor->family), state); in neighbor_hash_func() 119 r = memcmp(&a->in_addr, &b->in_addr, FAMILY_ADDRESS_SIZE(a->family)); in neighbor_compare_func()
|
D | networkd-routing-policy-rule.c | 164 siphash24_compress(&rule->from, FAMILY_ADDRESS_SIZE(rule->family), state); in routing_policy_rule_hash_func() 167 siphash24_compress(&rule->to, FAMILY_ADDRESS_SIZE(rule->family), state); in routing_policy_rule_hash_func() 211 r = memcmp(&a->from, &b->from, FAMILY_ADDRESS_SIZE(a->family)); in routing_policy_rule_compare_func() 219 r = memcmp(&a->to, &b->to, FAMILY_ADDRESS_SIZE(a->family)); in routing_policy_rule_compare_func()
|
D | networkd-nexthop.c | 118 siphash24_compress(&nexthop->gw, FAMILY_ADDRESS_SIZE(nexthop->family), state); in nexthop_hash_func() 147 return memcmp(&a->gw, &b->gw, FAMILY_ADDRESS_SIZE(a->family)); in nexthop_compare_func()
|
/systemd-251/src/shared/ |
D | in-addr-prefix-util.c | 64 siphash24_compress(&a->address, FAMILY_ADDRESS_SIZE(a->family), state); in in_addr_prefix_hash_func() 81 return memcmp(&x->address, &y->address, FAMILY_ADDRESS_SIZE(x->family)); in in_addr_prefix_compare_func()
|
D | bus-message-util.c | 64 if (sz != FAMILY_ADDRESS_SIZE(family)) in bus_message_read_in_addr_auto()
|
D | local-addresses.c | 36 return memcmp(&a->address, &b->address, FAMILY_ADDRESS_SIZE(a->family)); in address_compare()
|
/systemd-251/src/resolve/ |
D | resolved-varlink.c | 203 … JSON_BUILD_PAIR("address", JSON_BUILD_BYTE_ARRAY(p, FAMILY_ADDRESS_SIZE(family))))); in vl_method_resolve_hostname_complete() 270 … JSON_BUILD_PAIR("address", JSON_BUILD_BYTE_ARRAY(&parsed, FAMILY_ADDRESS_SIZE(ff)))))), in parse_as_address() 490 if (FAMILY_ADDRESS_SIZE(p.family) != p.address_size) in vl_method_resolve_address()
|
D | resolved-dns-server.c | 750 siphash24_compress(&s->address, FAMILY_ADDRESS_SIZE(s->family), state); in dns_server_hash_func() 763 r = memcmp(&x->address, &y->address, FAMILY_ADDRESS_SIZE(x->family)); in dns_server_compare_func()
|
D | resolved-dnstls-openssl.c | 93 … if (X509_VERIFY_PARAM_set1_ip(v, ip, FAMILY_ADDRESS_SIZE(server->family)) == 0) in dnstls_stream_connect_tls()
|
D | resolved-dns-stub.c | 31 siphash24_compress(&a->address, FAMILY_ADDRESS_SIZE(a->family), state); in dns_stub_listener_extra_hash_func() 49 r = memcmp(&a->address, &b->address, FAMILY_ADDRESS_SIZE(a->family)); in dns_stub_listener_extra_compare_func()
|
D | resolved-dns-zone.c | 530 …n->received->sender, &i->probe_transaction->received->destination, FAMILY_ADDRESS_SIZE(i->probe_tr… in dns_zone_item_notify()
|
/systemd-251/src/nss-mymachines/ |
D | nss-mymachines.c | 194 if (sz != FAMILY_ADDRESS_SIZE(family)) { in _nss_mymachines_gethostbyname4_r() 308 alen = FAMILY_ADDRESS_SIZE(af); in _nss_mymachines_gethostbyname3_r()
|
/systemd-251/src/test/ |
D | test-nss-hosts.c | 80 assert_se((unsigned) host->h_length == FAMILY_ADDRESS_SIZE(host->h_addrtype)); in print_struct_hostent() 391 FAMILY_ADDRESS_SIZE(addresses[i].family), in test_one_module()
|
/systemd-251/src/timesync/ |
D | timesyncd-bus.c | 151 FAMILY_ADDRESS_SIZE(a->sockaddr.sa.sa_family)); in property_get_current_server_address()
|
/systemd-251/src/core/ |
D | dbus-cgroup.c | 336 … r = sd_bus_message_append_array(reply, 'y', &i->address, FAMILY_ADDRESS_SIZE(i->family)); in property_get_ip_address_access() 1764 if (an != FAMILY_ADDRESS_SIZE(family)) in bus_cgroup_set_property() 1766 … af_to_name(family), FAMILY_ADDRESS_SIZE(family), an); in bus_cgroup_set_property() 1772 if (prefixlen > FAMILY_ADDRESS_SIZE(family)*8) in bus_cgroup_set_property()
|
/systemd-251/src/machine/ |
D | machine-dbus.c | 226 …r = sd_bus_message_append_array(reply, 'y', &addresses[i].address, FAMILY_ADDRESS_SIZE(addresses[i… in bus_machine_method_get_addresses() 282 … { .iov_base = &a->address, .iov_len = FAMILY_ADDRESS_SIZE(a->family) }, in bus_machine_method_get_addresses()
|