Home
last modified time | relevance | path

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

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