Searched refs:ancount (Results 1 - 22 of 22) 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.c580 register int qdcount, ancount, nscount, arcount; local
588 ancount = EXTRACT_16BITS(&np->ancount);
620 ND_PRINT((ndo, " %d/%d/%d", ancount, nscount, arcount));
621 if (ancount--) {
624 while (cp < ndo->ndo_snapend && ancount--) {
630 if (ancount > 0)
674 if (ancount != 1)
675 ND_PRINT((ndo, " [%da]", ancount));
678 if (ancount)
[all...]
H A Dnameser.h217 uint16_t ancount; /* number of answer entries */ member in struct:__anon22406
H A Dprint-smb.c1105 int qdcount, ancount, nscount, arcount; local
1116 ancount = EXTRACT_16BITS(data + 6);
1138 name_trn_id, opcode, nm_flags, rcode, qdcount, ancount, nscount,
1143 total = ancount + nscount + arcount;
/external/syslinux/gpxe/src/include/gpxe/
H A Ddns.h54 uint16_t ancount; member in struct:dns_header
/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/syslinux/core/fs/pxe/
H A Ddnsresolv.c24 uint16_t ancount; member in struct:dnshdr
/external/syslinux/core/legacynet/
H A Ddnsresolv.c22 uint16_t ancount; member in struct:dnshdr
258 hd1->ancount = 0; /* No answers */
318 reps = htons(hd2->ancount); /* Replies */
/external/openssh/openbsd-compat/
H A Dgetrrsetbyname.c272 rrset->rri_nrdatas = response->header.ancount;
402 resp->header.ancount = ntohs(resp->header.ancount);
422 resp->header.ancount);
423 if (resp->header.ancount && resp->answer == NULL) {
/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--)
1600 header->ancount
[all...]
H A Dnameser.h315 unsigned ancount :16; /* number of answer entries */ member in struct:__anon5060
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/syslinux/gpxe/src/net/udp/
H A Ddns.c175 for ( i = ntohs ( reply->ancount ) ; i > 0 ; i-- ) {
/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 498 milliseconds