Home
last modified time | relevance | path

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

/external/c-ares/
Dares_getnameinfo.c143 char ipbuf[IPBUFSIZ]; in ares_getnameinfo() local
146 ipbuf[0] = 0; in ares_getnameinfo()
158 ares_inet_ntop(AF_INET6, &addr6->sin6_addr, ipbuf, IPBUFSIZ); in ares_getnameinfo()
161 append_scopeid(addr6, flags, ipbuf, sizeof(ipbuf)); in ares_getnameinfo()
166 ares_inet_ntop(AF_INET, &addr->sin_addr, ipbuf, IPBUFSIZ); in ares_getnameinfo()
172 callback(arg, ARES_SUCCESS, 0, ipbuf, service); in ares_getnameinfo()
255 char ipbuf[IPBUFSIZ]; in nameinfo_callback() local
257 ares_inet_ntop(AF_INET, &niquery->addr.addr4.sin_addr, ipbuf, in nameinfo_callback()
261 ares_inet_ntop(AF_INET6, &niquery->addr.addr6.sin6_addr, ipbuf, in nameinfo_callback()
264 append_scopeid(&niquery->addr.addr6, niquery->flags, ipbuf, in nameinfo_callback()
[all …]
Dares_init.c1393 char ipbuf[16], ipbufpfx[32]; in config_sortlist() local
1398 memcpy(ipbuf, str, q-str); in config_sortlist()
1399 ipbuf[q-str] = '\0'; in config_sortlist()
1414 if ((bits = ares_inet_net_pton(AF_INET6, ipbufpfx[0] ? ipbufpfx : ipbuf, in config_sortlist()
1435 else if (ip_addr(ipbuf, q-str, &pat.addrV4) == 0) in config_sortlist()
1439 memcpy(ipbuf, str, q-str); in config_sortlist()
1440 ipbuf[q-str] = '\0'; in config_sortlist()
1441 if (ip_addr(ipbuf, q-str, &pat.mask.addr4) != 0) in config_sortlist()
1646 static int ip_addr(const char *ipbuf, ssize_t len, struct in_addr *addr) in ip_addr() argument
1653 addr->s_addr = inet_addr(ipbuf); in ip_addr()
[all …]
/external/iproute2/misc/
Darpd.c708 char ipbuf[128]; in main() local
714 if (sscanf(buf, "%u%s%s", &k.iface, ipbuf, macbuf) != 3) { in main()
720 if (!inet_aton(ipbuf, (struct in_addr*)&k.addr)) { in main()
721 fprintf(stderr, "Invalid IP address: \"%s\"\n", ipbuf); in main()