Home
last modified time | relevance | path

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

12

/openbsd/src/usr.sbin/tcpdump/
Dprint-domain.c576 int qdcount, ancount, nscount, arcount; in ns_print() local
584 ancount = EXTRACT_16BITS(&np->ancount); in ns_print()
616 printf(" %d/%d/%d", ancount, nscount, arcount); in ns_print()
617 if (ancount--) { in ns_print()
620 while (cp < snapend && ancount--) { in ns_print()
626 if (ancount > 0) in ns_print()
670 if (ancount != 1) in ns_print()
671 printf(" [%da]", ancount); in ns_print()
674 if (ancount) in ns_print()
675 printf(" [%da]", ancount); in ns_print()
[all …]
Dnameser.h205 u_int16_t ancount; /* number of answer entries */ member
Dprint-smb.c666 int ancount = RSVAL(data,6); in nbt_udp137_print() local
700 …uthoritycnt %d addrreccnt %d ", name_trn_id,opcode,nm_flags,rcode,qdcount,ancount,nscount,arcount); in nbt_udp137_print()
705 int total = ancount+nscount+arcount; in nbt_udp137_print()
/openbsd/src/usr.sbin/smtpd/
Ddns.c258 for (; h.ancount; h.ancount--) { in dns_dispatch_mx()
316 for (; h.ancount; h.ancount--) { in dns_dispatch_mx_preference()
Dunpack_dns.h36 uint16_t ancount; member
Dunpack_dns.c47 h->ancount = ntohs(h->ancount); in unpack_header()
Dspfwalk.c153 for (; h.ancount; h.ancount--) { in dispatch_record()
/openbsd/src/lib/libc/asr/
Dgetrrsetbyname_async.c287 rrset->rri_nrdatas = response->header.ancount; in get_response()
386 resp->header.ancount = ntohs(resp->header.ancount); in parse_dns_response()
406 resp->header.ancount); in parse_dns_response()
407 if (resp->header.ancount && resp->answer == NULL) { in parse_dns_response()
Dasr_utils.c262 h->ancount = ntohs(h->ancount); in _asr_unpack_header()
400 c.ancount = htons(h->ancount); in _asr_pack_header()
Dres_send_async.c274 } else if (as->as.dns.ancount) { in res_send_async_run()
276 ar->ar_count = as->as.dns.ancount; in res_send_async_run()
711 as->as.dns.ancount = h.ancount; in validate_packet()
733 for (r = h.ancount + h.nscount + h.arcount; r; r--) in validate_packet()
Dasr_private.h53 uint16_t ancount; member
193 int ancount; /* answer count */ member
Dasr_debug.c161 h->qdcount, h->ancount, h->nscount, h->arcount); in print_header()
197 ns = an + h.ancount; in _asr_dump_packet()
Dgethostnamadr_async.c506 for (; hdr.ancount; hdr.ancount--) { in hostent_from_packet()
/openbsd/src/regress/lib/libc/asr/bin/
Dres_mkquery.c122 h->qdcount, h->ancount, h->nscount, h->arcount); in print_header()
155 ns = an + h.ancount; in dump_packet()
Dcommon.h81 uint16_t ancount; member
Dres_query.c158 h->qdcount, h->ancount, h->nscount, h->arcount); in print_header()
191 ns = an + h.ancount; in dump_packet()
Dcommon.c556 h->ancount = ntohs(h->ancount); in unpack_header()
/openbsd/src/sbin/unwind/libunbound/util/data/
Dmsgencode.c690 uint16_t ancount=0, nscount=0, arcount=0; in reply_info_encode() local
739 if((r=insert_section(&arep, 1, &ancount, buffer, 0, in reply_info_encode()
744 sldns_buffer_write_u16_at(buffer, 6, ancount); in reply_info_encode()
754 if((r=insert_section(rep, rep->an_numrrsets, &ancount, buffer, in reply_info_encode()
759 sldns_buffer_write_u16_at(buffer, 6, ancount); in reply_info_encode()
766 sldns_buffer_write_u16_at(buffer, 6, ancount); in reply_info_encode()
Dmsgparse.h111 uint16_t ancount; member
/openbsd/src/usr.sbin/unbound/util/data/
Dmsgencode.c690 uint16_t ancount=0, nscount=0, arcount=0; in reply_info_encode() local
739 if((r=insert_section(&arep, 1, &ancount, buffer, 0, in reply_info_encode()
744 sldns_buffer_write_u16_at(buffer, 6, ancount); in reply_info_encode()
754 if((r=insert_section(rep, rep->an_numrrsets, &ancount, buffer, in reply_info_encode()
759 sldns_buffer_write_u16_at(buffer, 6, ancount); in reply_info_encode()
766 sldns_buffer_write_u16_at(buffer, 6, ancount); in reply_info_encode()
Dmsgparse.h111 uint16_t ancount; member
Dmsgparse.c920 msg->ancount = sldns_buffer_read_u16(pkt); in parse_packet()
928 msg->ancount, &msg->an_rrsets)) != 0) in parse_packet()
/openbsd/src/include/arpa/
Dnameser.h314 unsigned ancount :16; /* number of answer entries */ member
/openbsd/src/usr.sbin/nsd/
Dxfrd.c2126 size_t ancount = ANCOUNT(packet), ancount_todo; in xfrd_parse_received_xfr_packet() local
2183 if(qdcount > 64 || ancount > 65530 || nscount > 65530) { in xfrd_parse_received_xfr_packet()
2199 if(zone->latest_xfr->msg_rr_count == 0 && ancount == 0) { in xfrd_parse_received_xfr_packet()
2218 ancount_todo = ancount; in xfrd_parse_received_xfr_packet()
2290 if(ancount == 1) { in xfrd_parse_received_xfr_packet()
2305 ancount_todo = ancount - 1; in xfrd_parse_received_xfr_packet()
2316 if(zone->tcp_conn == -1 && ancount < 2) { in xfrd_parse_received_xfr_packet()
Ddifffile.c1001 int qcount, ancount; in apply_ixfr() local
1056 ancount = ANCOUNT(packet); in apply_ixfr()
1059 if(qcount > 64 || ancount > 65530) { in apply_ixfr()
1077 for(int i=0; i < ancount; ++i, ++(*rr_count)) { in apply_ixfr()
1172 if (i == ancount - 1 && seq_nr == seq_total - 1) { in apply_ixfr()

12