Lines Matching defs:address
41 /* Picks an address family depending on set flags. This is
170 r = dns_resource_record_new_address(&rr, addresses[j].family, &addresses[j].address, name);
203 if (match && !in_addr_equal(af, match, &addresses[j].address))
211 r = dns_resource_record_new_reverse(&rr, addresses[j].family, &addresses[j].address, name);
247 .address.in.s_addr = htobe32(0x7F000002),
254 .address.in6 = in6addr_loopback,
264 static int synthesize_system_hostname_ptr(Manager *m, int af, const union in_addr_union *address, int ifindex, DnsAnswer **answer) {
269 assert(address);
272 if (af == AF_INET && address->in.s_addr == htobe32(0x7F000002)) {
274 /* Always map the IPv4 address 127.0.0.2 to the local
300 r = answer_add_addresses_ptr(answer, m->llmnr_hostname, addresses, n, af, address);
304 return answer_add_addresses_ptr(answer, m->mdns_hostname, addresses, n, af, address);
325 static int synthesize_gateway_ptr(Manager *m, int af, const union in_addr_union *address, int ifindex, DnsAnswer **answer) {
330 assert(address);
337 return answer_add_addresses_ptr(answer, "gateway", addresses, n, af, address);
355 union in_addr_union address;
390 } else if (dns_name_address(name, &af, &address) > 0) {
392 r = synthesize_system_hostname_ptr(m, af, &address, ifindex, &answer);
396 r = synthesize_gateway_ptr(m, af, &address, ifindex, &answer);