Lines Matching refs:af

171                 int af, const union in_addr_union *match) {  in answer_add_addresses_ptr()  argument
183 if (af != AF_UNSPEC) { in answer_add_addresses_ptr()
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()
212 int n = 0, af; in synthesize_system_hostname_rr() local
218 af = dns_type_to_af(key->type); in synthesize_system_hostname_rr()
219 if (af >= 0) { in synthesize_system_hostname_rr()
220 n = local_addresses(m->rtnl, ifindex, af, &addresses); in synthesize_system_hostname_rr()
230 if (IN_SET(af, AF_INET, AF_UNSPEC)) in synthesize_system_hostname_rr()
237 if (IN_SET(af, AF_INET6, AF_UNSPEC) && socket_ipv6_is_enabled()) in synthesize_system_hostname_rr()
253 static int synthesize_system_hostname_ptr(Manager *m, int af, const union in_addr_union *address, i… in synthesize_system_hostname_ptr() argument
262 if (af == AF_INET && address->in.s_addr == htobe32(0x7F000002)) { in synthesize_system_hostname_ptr()
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()
318 …int (*lookup)(sd_netlink *context, int ifindex, int af, struct local_address **ret), /* either loc… in synthesize_gateway_rr() argument
321 int n = 0, af, r; in synthesize_gateway_rr() local
328 af = dns_type_to_af(key->type); in synthesize_gateway_rr()
329 if (af >= 0) { in synthesize_gateway_rr()
330 n = lookup(m->rtnl, ifindex, af, &addresses); in synthesize_gateway_rr()
336 if (af == AF_INET) in synthesize_gateway_rr()
339 assert(af == AF_INET6); in synthesize_gateway_rr()
358 static int synthesize_gateway_ptr(Manager *m, int af, const union in_addr_union *address, int ifind… in synthesize_gateway_ptr() argument
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()
390 int af; in dns_synthesize_answer() local
444 } else if (dns_name_address(name, &af, &address) > 0) { in dns_synthesize_answer()
447 v = synthesize_system_hostname_ptr(m, af, &address, ifindex, &answer); in dns_synthesize_answer()
451 w = synthesize_gateway_ptr(m, af, &address, ifindex, &answer); in dns_synthesize_answer()