/external/c-ares/ |
D | ares_parse_a_reply.c | 59 int status, i, rr_type, rr_class, rr_len, rr_ttl, naddrs; in ares_parse_a_reply() local 122 naddrs = 0; in ares_parse_a_reply() 157 memcpy(&addrs[naddrs], aptr, sizeof(struct in_addr)); in ares_parse_a_reply() 159 if (naddrs < max_addr_ttls) in ares_parse_a_reply() 161 struct ares_addrttl * const at = &addrttls[naddrs]; in ares_parse_a_reply() 171 naddrs++; in ares_parse_a_reply() 207 if (status == ARES_SUCCESS && naddrs == 0 && naliases == 0) in ares_parse_a_reply() 216 const int n = naddrs < max_addr_ttls ? naddrs : max_addr_ttls; in ares_parse_a_reply() 233 hostent->h_addr_list = malloc((naddrs + 1) * sizeof(char *)); in ares_parse_a_reply() 241 for (i = 0; i < naddrs; i++) in ares_parse_a_reply() [all …]
|
D | ares_parse_aaaa_reply.c | 61 int status, i, rr_type, rr_class, rr_len, rr_ttl, naddrs; in ares_parse_aaaa_reply() local 122 naddrs = 0; in ares_parse_aaaa_reply() 157 memcpy(&addrs[naddrs], aptr, sizeof(struct ares_in6_addr)); in ares_parse_aaaa_reply() 159 if (naddrs < max_addr_ttls) in ares_parse_aaaa_reply() 161 struct ares_addr6ttl * const at = &addrttls[naddrs]; in ares_parse_aaaa_reply() 171 naddrs++; in ares_parse_aaaa_reply() 207 if (status == ARES_SUCCESS && naddrs == 0) in ares_parse_aaaa_reply() 214 const int n = naddrs < max_addr_ttls ? naddrs : max_addr_ttls; in ares_parse_aaaa_reply() 231 hostent->h_addr_list = malloc((naddrs + 1) * sizeof(char *)); in ares_parse_aaaa_reply() 239 for (i = 0; i < naddrs; i++) in ares_parse_aaaa_reply() [all …]
|
/external/tcpdump/ |
D | print-vrrp.c | 135 int naddrs = bp[3]; in vrrp_print() local 158 if (naddrs > 1) in vrrp_print() 159 ND_PRINT((ndo, "(%d)", naddrs)); in vrrp_print() 163 for (i = 0; i < naddrs; i++) { in vrrp_print()
|
D | print-lwres.c | 112 lwres_uint16_t naddrs; member 473 EXTRACT_16BITS(&gabn->naddrs))); in lwres_print() 490 na = EXTRACT_16BITS(&gabn->naddrs); in lwres_print()
|
/external/iptables/libxtables/ |
D | xtables.c | 1393 ipparse_hostnetwork(const char *name, unsigned int *naddrs) in ipparse_hostnetwork() argument 1401 *naddrs = 1; in ipparse_hostnetwork() 1404 if ((addrptmp = host_to_ipaddr(name, naddrs)) != NULL) in ipparse_hostnetwork() 1437 struct in_addr **maskpp, unsigned int *naddrs) in xtables_ipparse_multiple() argument 1509 *naddrs = count; in xtables_ipparse_multiple() 1523 struct in_addr *maskp, unsigned int *naddrs) in xtables_ipparse_any() argument 1543 addrp = *addrpp = ipparse_hostnetwork(buf, naddrs); in xtables_ipparse_any() 1544 n = *naddrs; in xtables_ipparse_any() 1554 memcpy(&addrp[--j], &addrp[--*naddrs], in xtables_ipparse_any() 1693 ip6parse_hostnetwork(const char *name, unsigned int *naddrs) in ip6parse_hostnetwork() argument [all …]
|
/external/libpcap/Win32/Src/ |
D | getaddrinfo.c | 529 int naddrs; local 608 for (naddrs = 0; hp->h_addr_list[naddrs] != NULL; naddrs++) 610 naddrs++; 611 aplist = (char **)malloc(sizeof(aplist[0]) * naddrs); 612 apbuf = (char *)malloc(hp->h_length * naddrs); 617 memset(aplist, 0, sizeof(aplist[0]) * naddrs); 618 for (i = 0; i < naddrs; i++) {
|
/external/iptables/iptables/ |
D | xtables.c | 420 for (i = 0; i < s.naddrs; i++) { in add_entry() 424 for (j = 0; j < d.naddrs; j++) { in add_entry() 443 for (j = 0; j < d.naddrs; j++) { in add_entry() 501 for (i = 0; i < s.naddrs; i++) { in delete_entry() 505 for (j = 0; j < d.naddrs; j++) { in delete_entry() 516 for (j = 0; j < d.naddrs; j++) { in delete_entry() 541 for (i = 0; i < s.naddrs; i++) { in check_entry() 545 for (j = 0; j < d.naddrs; j++) { in check_entry() 556 for (j = 0; j < d.naddrs; j++) { in check_entry() 1126 (args->s.naddrs != 1 || args->d.naddrs != 1)) in do_parse()
|
D | xtables-arp.c | 630 parse_hostnetwork(const char *name, unsigned int *naddrs) in parse_hostnetwork() argument 638 *naddrs = 1; in parse_hostnetwork() 641 if ((addrp = host_to_addr(name, naddrs)) != NULL) in parse_hostnetwork() 676 struct in_addr *maskp, unsigned int *naddrs) in parse_hostnetworkmask() argument 695 addrp = *addrpp = parse_hostnetwork(buf, naddrs); in parse_hostnetworkmask() 696 n = *naddrs; in parse_hostnetworkmask() 701 (*naddrs)--; in parse_hostnetworkmask()
|
D | nft-ipv6.c | 353 &args->s.naddrs); in nft_ipv6_post_parse() 358 &args->d.naddrs); in nft_ipv6_post_parse() 360 if ((args->s.naddrs > 1 || args->d.naddrs > 1) && in nft_ipv6_post_parse()
|
D | xtables-translate.c | 169 for (i = 0; i < args->s.naddrs; i++) { in xlate() 174 for (j = 0; j < args->d.naddrs; j++) { in xlate() 187 for (j = 0; j < args->d.naddrs; j++) { in xlate()
|
D | nft-ipv4.c | 406 &args->s.naddrs); in nft_ipv4_post_parse() 410 &args->d.naddrs); in nft_ipv4_post_parse() 412 if ((args->s.naddrs > 1 || args->d.naddrs > 1) && in nft_ipv4_post_parse()
|
D | nft-shared.h | 183 unsigned int naddrs; member
|
/external/iptables/extensions/ |
D | libxt_mangle.c | 162 unsigned int *naddrs) in parse_hostnetwork() argument 170 *naddrs = 1; in parse_hostnetwork() 173 if ((addrp = host_to_addr(name, naddrs)) != NULL) in parse_hostnetwork()
|
/external/webrtc/talk/media/sctp/ |
D | sctpdataengine.cc | 332 int naddrs = usrsctp_getladdrs(sock, 0, &addrs); in GetChannelFromSocket() local 333 if (naddrs <= 0 || addrs[0].sa_family != AF_CONN) { in GetChannelFromSocket()
|