Home
last modified time | relevance | path

Searched refs:ADDRSTRLEN (Results 1 – 3 of 3) sorted by relevance

/external/dnsmasq/src/
Dconfig.h250 #define ADDRSTRLEN INET6_ADDRSTRLEN macro
258 #define ADDRSTRLEN INET_ADDRSTRLEN macro
261 #define ADDRSTRLEN 16 /* 4*3 + 3 dots + NULL */ macro
Dcache.c51 if (daemon->options & OPT_LOG) addrbuff = safe_malloc(ADDRSTRLEN); in cache_init()
940 if (!addrbuff && !(addrbuff = whine_malloc(ADDRSTRLEN))) return; in dump_cache()
983 inet_ntop(AF_INET, &cache->addr.addr, addrbuff, ADDRSTRLEN); in dump_cache()
985 inet_ntop(AF_INET6, &cache->addr.addr, addrbuff, ADDRSTRLEN); in dump_cache()
1039 inet_ntop(flags & F_IPV4 ? AF_INET : AF_INET6, addr, addrbuff, ADDRSTRLEN); in log_query()
1041 strncpy(addrbuff, inet_ntoa(addr->addr.addr4), ADDRSTRLEN); in log_query()
Dutil.c320 getnameinfo((const struct sockaddr*) addr, sizeof(*addr), buf, ADDRSTRLEN, portstr, in prettyprint_addr()