Home
last modified time | relevance | path

Searched refs:FAMILY_ADDRESS_SIZE (Results 1 – 25 of 33) sorted by relevance

12

/systemd-251/src/basic/
Din-addr-util.c469 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()
Din-addr-util.h113 static inline size_t FAMILY_ADDRESS_SIZE(int family) { in FAMILY_ADDRESS_SIZE() function
Dether-addr-util.c203 ret->length = FAMILY_ADDRESS_SIZE(family); in parse_hw_addr_full()
/systemd-251/src/nss-myhostname/
Dnss-myhostname.c203 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/
Dnss-resolve.c90 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/
Dnetlink-util.c588 … 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()
Dnetlink-message.c467 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/
Dnetworkd-route.c122 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 …]
Dnetworkd-address.c278 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()
Dnetworkd-neighbor.c99 … 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()
Dnetworkd-routing-policy-rule.c164 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()
Dnetworkd-nexthop.c118 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/
Din-addr-prefix-util.c64 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()
Dbus-message-util.c64 if (sz != FAMILY_ADDRESS_SIZE(family)) in bus_message_read_in_addr_auto()
Dlocal-addresses.c36 return memcmp(&a->address, &b->address, FAMILY_ADDRESS_SIZE(a->family)); in address_compare()
/systemd-251/src/resolve/
Dresolved-varlink.c203 … 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()
Dresolved-dns-server.c750 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()
Dresolved-dnstls-openssl.c93 … if (X509_VERIFY_PARAM_set1_ip(v, ip, FAMILY_ADDRESS_SIZE(server->family)) == 0) in dnstls_stream_connect_tls()
Dresolved-dns-stub.c31 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()
Dresolved-dns-zone.c530 …n->received->sender, &i->probe_transaction->received->destination, FAMILY_ADDRESS_SIZE(i->probe_tr… in dns_zone_item_notify()
/systemd-251/src/nss-mymachines/
Dnss-mymachines.c194 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/
Dtest-nss-hosts.c80 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/
Dtimesyncd-bus.c151 FAMILY_ADDRESS_SIZE(a->sockaddr.sa.sa_family)); in property_get_current_server_address()
/systemd-251/src/core/
Ddbus-cgroup.c336 … 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/
Dmachine-dbus.c226 …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()

12