Home
last modified time | relevance | path

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

12

/external/tcpdump/
Dprint-domain.c581 register int qdcount, ancount, nscount, arcount; in ns_print() local
589 ancount = EXTRACT_16BITS(&np->ancount); in ns_print()
621 ND_PRINT((ndo, " %d/%d/%d", ancount, nscount, arcount)); in ns_print()
622 if (ancount--) { in ns_print()
625 while (cp < ndo->ndo_snapend && ancount--) { in ns_print()
631 if (ancount > 0) in ns_print()
675 if (ancount != 1) in ns_print()
676 ND_PRINT((ndo, " [%da]", ancount)); in ns_print()
679 if (ancount) in ns_print()
680 ND_PRINT((ndo, " [%da]", ancount)); in ns_print()
[all …]
Dnameser.h217 uint16_t ancount; /* number of answer entries */ member
Dprint-smb.c1105 int qdcount, ancount, nscount, arcount; in nbt_udp137_print() local
1116 ancount = EXTRACT_16BITS(data + 6); in nbt_udp137_print()
1138 name_trn_id, opcode, nm_flags, rcode, qdcount, ancount, nscount, in nbt_udp137_print()
1143 total = ancount + nscount + arcount; in nbt_udp137_print()
/external/rust/crates/grpcio-sys/grpc/third_party/cares/cares/
Dares_parse_srv_reply.c52 unsigned int qdcount, ancount, i; in ares_parse_srv_reply() local
70 ancount = DNS_HEADER_ANCOUNT (abuf); in ares_parse_srv_reply()
73 if (ancount == 0) in ares_parse_srv_reply()
90 for (i = 0; i < ancount; i++) in ares_parse_srv_reply()
Dares_parse_mx_reply.c47 unsigned int qdcount, ancount, i; in ares_parse_mx_reply() local
65 ancount = DNS_HEADER_ANCOUNT (abuf); in ares_parse_mx_reply()
68 if (ancount == 0) in ares_parse_mx_reply()
85 for (i = 0; i < ancount; i++) in ares_parse_mx_reply()
Dares_parse_ns_reply.c48 unsigned int qdcount, ancount; in ares_parse_ns_reply() local
65 ancount = DNS_HEADER_ANCOUNT( abuf ); in ares_parse_ns_reply()
82 nameservers = ares_malloc( ( ancount + 1 ) * sizeof( char * ) ); in ares_parse_ns_reply()
91 for ( i = 0; i < ( int ) ancount; i++ ) in ares_parse_ns_reply()
Dares_parse_naptr_reply.c52 unsigned int qdcount, ancount, i; in ares_parse_naptr_reply() local
70 ancount = DNS_HEADER_ANCOUNT (abuf); in ares_parse_naptr_reply()
73 if (ancount == 0) in ares_parse_naptr_reply()
90 for (i = 0; i < ancount; i++) in ares_parse_naptr_reply()
Dares_parse_txt_reply.c52 unsigned int qdcount, ancount, i; in ares__parse_txt_reply() local
71 ancount = DNS_HEADER_ANCOUNT (abuf); in ares__parse_txt_reply()
74 if (ancount == 0) in ares__parse_txt_reply()
91 for (i = 0; i < ancount; i++) in ares__parse_txt_reply()
Dares_parse_aaaa_reply.c55 unsigned int qdcount, ancount; in ares_parse_aaaa_reply() local
79 ancount = DNS_HEADER_ANCOUNT(abuf); in ares_parse_aaaa_reply()
98 addrs = ares_malloc(ancount * sizeof(struct ares_in6_addr)); in ares_parse_aaaa_reply()
104 aliases = ares_malloc((ancount + 1) * sizeof(char *)); in ares_parse_aaaa_reply()
121 for (i = 0; i < (int)ancount; i++) in ares_parse_aaaa_reply()
Dares_parse_a_reply.c53 unsigned int qdcount, ancount; in ares_parse_a_reply() local
77 ancount = DNS_HEADER_ANCOUNT(abuf); in ares_parse_a_reply()
97 addrs = ares_malloc(ancount * sizeof(struct in_addr)); in ares_parse_a_reply()
103 aliases = ares_malloc((ancount + 1) * sizeof(char *)); in ares_parse_a_reply()
121 for (i = 0; i < (int)ancount; i++) in ares_parse_a_reply()
Dares_parse_soa_reply.c51 int qdcount, ancount; in ares_parse_soa_reply() local
59 ancount = DNS_HEADER_ANCOUNT(abuf); in ares_parse_soa_reply()
60 if (qdcount != 1 || ancount != 1) in ares_parse_soa_reply()
Dares_query.c150 unsigned int ancount; in qcallback() local
159 ancount = DNS_HEADER_ANCOUNT(abuf); in qcallback()
165 status = (ancount > 0) ? ARES_SUCCESS : ARES_ENODATA; in qcallback()
Dares_parse_ptr_reply.c46 unsigned int qdcount, ancount; in ares_parse_ptr_reply() local
66 ancount = DNS_HEADER_ANCOUNT(abuf); in ares_parse_ptr_reply()
90 for (i = 0; i < (int)ancount; i++) in ares_parse_ptr_reply()
Dadig.c401 unsigned int qdcount, ancount, nscount, arcount, i; in callback() local
434 ancount = DNS_HEADER_ANCOUNT(abuf); in callback()
461 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/webrtc/p2p/base/
Dmdns_message.cc114 !buf->ReadUInt16(&qdcount) || !buf->ReadUInt16(&ancount) || in Read()
126 buf->WriteUInt16(ancount); in Write()
345 !read_rr(&answer_section_, header_.ancount) || in Read()
393 header_.ancount = answer_section_.size(); in AddAnswerRecord()
Dmdns_message.h67 uint16_t ancount = 0; variable
/external/openssh/openbsd-compat/
Dgetrrsetbyname.c272 rrset->rri_nrdatas = response->header.ancount; in getrrsetbyname()
402 resp->header.ancount = ntohs(resp->header.ancount); in parse_dns_response()
422 resp->header.ancount); in parse_dns_response()
423 if (resp->header.ancount && resp->answer == NULL) { in parse_dns_response()
/external/dnsmasq/src/
Drfc1035.c348 ansp, ntohs(header->ancount) + ntohs(header->nscount) + ntohs(header->arcount), in resize_packet()
394 if (!(ansp = skip_section(ansp, ntohs(header->ancount) + ntohs(header->nscount), header, plen))) in find_pseudoheader()
481 !(p = do_doctor(p, ntohs(header->ancount), header, qlen))) in find_soa()
562 for (j = ntohs(header->ancount); j != 0; j--) { in extract_addresses()
625 for (j = ntohs(header->ancount); j != 0; j--) { in extract_addresses()
742 header->ancount = htons(0); /* no answers unless changed below */ in setup_reply()
751 header->ancount = htons(1); in setup_reply()
759 header->ancount = htons(1); in setup_reply()
811 for (i = ntohs(header->ancount); i != 0; i--) { in check_for_bogus_wildcard()
1357 header->ancount = htons(anscount); in answer_request()
Dnameser.h313 unsigned ancount : 16; /* number of answer entries */ member
Dforward.c361 if (!header->ra && header->rcode == NOERROR && ntohs(header->ancount) == 0 && server && in process_reply()
394 header->ancount = htons(0); in process_reply()
451 header->ancount = htons(0); in reply_query()
/external/bcc/examples/networking/dns_matching/
Ddns_matching.c28 uint16_t ancount; member
/external/curl/lib/
Ddoh.c615 unsigned short ancount; in doh_decode() local
642 ancount = get16bit(doh, 6); in doh_decode()
643 while(ancount) { in doh_decode()
689 ancount--; in doh_decode()
/external/scapy/test/
Danswering_machines.uts56 assert(DNS in packet and packet[DNS].ancount == 1)
/external/scapy/scapy/layers/
Ddns.py305 if self.ancount > 0 and isinstance(self.an, DNSRR):

12