Searched refs:ancount (Results 1 - 19 of 19) sorted by relevance

/external/c-ares/
H A Dares_parse_mx_reply.c52 unsigned int qdcount, ancount, i; local
70 ancount = DNS_HEADER_ANCOUNT (abuf);
73 if (ancount == 0)
90 for (i = 0; i < ancount; i++)
H A Dares_parse_ns_reply.c53 unsigned int qdcount, ancount; local
70 ancount = DNS_HEADER_ANCOUNT( abuf );
86 /* Allocate nameservers array; ancount gives an upper bound */
87 nameservers = malloc( ( ancount + 1 ) * sizeof( char * ) );
96 for ( i = 0; i < ( int ) ancount; i++ )
H A Dares_parse_srv_reply.c57 unsigned int qdcount, ancount, i; local
75 ancount = DNS_HEADER_ANCOUNT (abuf);
78 if (ancount == 0)
95 for (i = 0; i < ancount; i++)
H A Dares_parse_txt_reply.c58 unsigned int qdcount, ancount, i; local
77 ancount = DNS_HEADER_ANCOUNT (abuf);
80 if (ancount == 0)
97 for (i = 0; i < ancount; i++)
H A Dares_parse_a_reply.c58 unsigned int qdcount, ancount; local
82 ancount = DNS_HEADER_ANCOUNT(abuf);
100 /* Allocate addresses and aliases; ancount gives an upper bound for
102 addrs = malloc(ancount * sizeof(struct in_addr));
108 aliases = malloc((ancount + 1) * sizeof(char *));
126 for (i = 0; i < (int)ancount; i++)
H A Dares_parse_aaaa_reply.c60 unsigned int qdcount, ancount; local
84 ancount = DNS_HEADER_ANCOUNT(abuf);
100 /* Allocate addresses and aliases; ancount gives an upper bound for both. */
103 addrs = malloc(ancount * sizeof(struct ares_in6_addr));
109 aliases = malloc((ancount + 1) * sizeof(char *));
126 for (i = 0; i < (int)ancount; i++)
H A Dares_parse_ptr_reply.c50 unsigned int qdcount, ancount; local
69 ancount = DNS_HEADER_ANCOUNT(abuf);
93 for (i = 0; i < (int)ancount; i++)
H A Dares_query.c147 unsigned int ancount; local
156 ancount = DNS_HEADER_ANCOUNT(abuf);
162 status = (ancount > 0) ? ARES_SUCCESS : ARES_ENODATA;
H A Dadig.c417 unsigned int qdcount, ancount, nscount, arcount, i; local
450 ancount = DNS_HEADER_ANCOUNT(abuf);
477 for (i = 0; i < ancount; i++)
/external/tcpdump/
H A Dprint-domain.c582 register int qdcount, ancount, nscount, arcount; local
590 ancount = EXTRACT_16BITS(&np->ancount);
622 ND_PRINT((ndo, " %d/%d/%d", ancount, nscount, arcount));
623 if (ancount--) {
626 while (cp < ndo->ndo_snapend && ancount--) {
632 if (ancount > 0)
676 if (ancount != 1)
677 ND_PRINT((ndo, " [%da]", ancount));
680 if (ancount)
[all...]
H A Dnameser.h231 uint16_t ancount; /* number of answer entries */ member in struct:__anon17456
H A Dprint-smb.c1102 int qdcount, ancount, nscount, arcount; local
1113 ancount = EXTRACT_16BITS(data + 6);
1135 name_trn_id, opcode, nm_flags, rcode, qdcount, ancount, nscount,
1140 total = ancount + nscount + arcount;
/external/ipsec-tools/src/racoon/
H A Dgetcertsbyname.c211 int qdcount, ancount, rdlength; local
254 ancount = ntohs(hp->ancount);
277 while (ancount-- && cp < eom) {
/external/dnsmasq/src/
H A Drfc1035.c426 if (!(ansp = skip_section(ansp, ntohs(header->ancount) + ntohs(header->nscount) + ntohs(header->arcount),
482 if (!(ansp = skip_section(ansp, ntohs(header->ancount) + ntohs(header->nscount), header, plen)))
592 !(p = do_doctor(p, ntohs(header->ancount), header, qlen)))
692 for (j = ntohs(header->ancount); j != 0; j--)
770 for (j = ntohs(header->ancount); j != 0; j--)
913 header->ancount = htons(0); /* no answers unless changed below */
923 header->ancount = htons(1);
931 header->ancount = htons(1);
989 for (i = ntohs(header->ancount); i != 0; i--)
1597 header->ancount
[all...]
H A Dnameser.h315 unsigned ancount :16; /* number of answer entries */ member in struct:__anon4719
H A Dforward.c417 if (!header->ra && header->rcode == NOERROR && ntohs(header->ancount) == 0 &&
459 header->ancount = htons(0);
521 header->ancount = htons(0);
/external/libpcap/Win32/Include/arpa/
H A Dnameser.h282 unsigned ancount :16; /* number of answer entries */ member in struct:__anon10620
/external/chromium-trace/catapult/telemetry/third_party/webpagereplay/third_party/dns/
H A Dmessage.py709 (self.message.id, self.message.flags, qcount, ancount,
717 self._get_section(self.message.answer, ancount)
/external/mdnsresponder/mDNSShared/
H A Ddnsextd.c1936 int ancount = 0; local
1938 while (rr) { ancount++; rr = rr->next; }
1939 Log("%p : Question %##s; type %d; referenced by %d LLQs; %d answers:", a, a->name.c, a->type, a->refcount, ancount);

Completed in 1273 milliseconds