Lines Matching refs:af
523 const char *rt_addr_n2a(int af, int len, const void *addr, char *buf, int buflen) in rt_addr_n2a() argument
525 switch (af) { in rt_addr_n2a()
528 return inet_ntop(af, addr, buf, buflen); in rt_addr_n2a()
531 return ipx_ntop(af, addr, buf, buflen); in rt_addr_n2a()
536 return dnet_ntop(af, &dna, buf, buflen); in rt_addr_n2a()
555 static const char *resolve_address(const void *addr, int len, int af) in resolve_address() argument
563 if (af == AF_INET6 && ((__u32*)addr)[0] == 0 && in resolve_address()
565 af = AF_INET; in resolve_address()
573 if (n->addr.family == af && in resolve_address()
580 n->addr.family = af; in resolve_address()
590 if ((h_ent = gethostbyaddr(addr, len, af)) != NULL) in resolve_address()
599 const char *format_host(int af, int len, const void *addr, in format_host() argument
607 switch (af) { in format_host()
628 (n = resolve_address(addr, len, af)) != NULL) in format_host()
632 return rt_addr_n2a(af, len, addr, buf, buflen); in format_host()