Lines Matching refs:addresses
138 struct local_address *addresses, in answer_add_addresses_rr() argument
154 … r = dns_resource_record_new_address(&rr, addresses[j].family, &addresses[j].address, name); in answer_add_addresses_rr()
158 … r = dns_answer_add(*answer, rr, addresses[j].ifindex, DNS_ANSWER_AUTHENTICATED, NULL); in answer_add_addresses_rr()
169 struct local_address *addresses, in answer_add_addresses_ptr() argument
185 if (addresses[j].family != af) in answer_add_addresses_ptr()
188 if (match && !in_addr_equal(af, match, &addresses[j].address)) in answer_add_addresses_ptr()
196 … r = dns_resource_record_new_reverse(&rr, addresses[j].family, &addresses[j].address, name); in answer_add_addresses_ptr()
200 … r = dns_answer_add(*answer, rr, addresses[j].ifindex, DNS_ANSWER_AUTHENTICATED, NULL); in answer_add_addresses_ptr()
211 _cleanup_free_ struct local_address *addresses = NULL; in synthesize_system_hostname_rr() local
220 n = local_addresses(m->rtnl, ifindex, af, &addresses); in synthesize_system_hostname_rr()
250 return answer_add_addresses_rr(answer, dns_resource_key_name(key), addresses, n); in synthesize_system_hostname_rr()
254 _cleanup_free_ struct local_address *addresses = NULL; in synthesize_system_hostname_ptr() local
289 n = local_addresses(m->rtnl, ifindex, af, &addresses); in synthesize_system_hostname_ptr()
293 r = answer_add_addresses_ptr(answer, m->full_hostname, addresses, n, af, address); in synthesize_system_hostname_ptr()
299 r = answer_add_addresses_ptr(answer, m->llmnr_hostname, addresses, n, af, address); in synthesize_system_hostname_ptr()
305 r = answer_add_addresses_ptr(answer, m->mdns_hostname, addresses, n, af, address); in synthesize_system_hostname_ptr()
320 _cleanup_free_ struct local_address *addresses = NULL; in synthesize_gateway_rr() local
330 n = lookup(m->rtnl, ifindex, af, &addresses); in synthesize_gateway_rr()
351 r = answer_add_addresses_rr(answer, dns_resource_key_name(key), addresses, n); in synthesize_gateway_rr()
359 _cleanup_free_ struct local_address *addresses = NULL; in synthesize_gateway_ptr() local
366 n = local_gateways(m->rtnl, ifindex, af, &addresses); in synthesize_gateway_ptr()
370 return answer_add_addresses_ptr(answer, "_gateway", addresses, n, af, address); in synthesize_gateway_ptr()