Home
last modified time | relevance | path

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

12

/freebsd-12-stable/contrib/tcpdump/
Dprint-domain.c581 register int qdcount, ancount, nscount, arcount; in ns_print() local
596 ancount = EXTRACT_16BITS(&np->ancount); in ns_print()
628 ND_PRINT((ndo, " %d/%d/%d", ancount, nscount, arcount)); in ns_print()
629 if (ancount--) { in ns_print()
632 while (cp < ndo->ndo_snapend && ancount--) { in ns_print()
638 if (ancount > 0) in ns_print()
682 if (ancount != 1) in ns_print()
683 ND_PRINT((ndo, " [%da]", ancount)); in ns_print()
686 if (ancount) in ns_print()
687 ND_PRINT((ndo, " [%da]", ancount)); in ns_print()
[all …]
Dnameser.h217 uint16_t ancount; /* number of answer entries */ member
Dprint-smb.c1112 int qdcount, ancount, nscount, arcount; in nbt_udp137_print() local
1123 ancount = EXTRACT_16BITS(data + 6); in nbt_udp137_print()
1145 name_trn_id, opcode, nm_flags, rcode, qdcount, ancount, nscount, in nbt_udp137_print()
1150 total = ancount + nscount + arcount; in nbt_udp137_print()
/freebsd-12-stable/usr.sbin/pkg/
Ddns_utils.c124 int len, qdcount, ancount, n, i, f, l; in dns_getsrvinfo() local
132 ancount = ntohs(q.hdr.ancount); in dns_getsrvinfo()
144 res = calloc(ancount, sizeof(struct dns_srvinfo *)); in dns_getsrvinfo()
149 while (ancount > 0 && p < end) { in dns_getsrvinfo()
150 ancount--; in dns_getsrvinfo()
/freebsd-12-stable/lib/libc/net/
Dhesiod.c375 int ancount, qdcount, i, j, n, skip, type, class, len; local
395 ancount = ntohs(hp->ancount);
414 list = malloc((ancount + 1) * sizeof(char *));
421 for (i = 0; i < ancount; i++) {
470 if (i < ancount) {
Dgetnetbydns.c166 int type, class, ancount, qdcount, haveanswer; in getnetanswer() local
187 ancount = ntohs(hp->ancount); /* #/records in the answer section */ in getnetanswer()
205 while (--ancount >= 0 && cp < eom) { in getnetanswer()
Dgetaddrinfo.c1993 int type, class, ancount, qdcount; in getanswer() local
2017 ancount = ntohs(hp->ancount); in getanswer()
2049 while (ancount-- > 0 && cp < eom && !had_error) { in getanswer()
2187 RES_SET_H_ERRNO(res, ntohs(hp->ancount) > 0 ? NO_DATA : NO_RECOVERY); in getanswer()
2706 int ancount; in res_queryN() local
2709 ancount = 0; in res_queryN()
2778 if (hp->rcode != NOERROR || ntohs(hp->ancount) == 0) { in res_queryN()
2783 ntohs(hp->ancount)); in res_queryN()
2788 ancount += ntohs(hp->ancount); in res_queryN()
2795 if (ancount == 0) { in res_queryN()
[all …]
Dgethostbydns.c150 int type, class, ancount, qdcount; in gethostanswer() local
176 ancount = ntohs(hp->ancount); in gethostanswer()
216 while (ancount-- > 0 && cp < eom && !had_error) { in gethostanswer()
/freebsd-12-stable/contrib/sendmail/contrib/
Dbitdomain.c216 int ancount, qdcount; local
281 for (ancount = ntohs(hp->ancount); --ancount >= 0 && ap < eom; ap += n)
/freebsd-12-stable/crypto/openssh/openbsd-compat/
Dgetrrsetbyname.c271 rrset->rri_nrdatas = response->header.ancount; in getrrsetbyname()
401 resp->header.ancount = ntohs(resp->header.ancount); in parse_dns_response()
421 resp->header.ancount); in parse_dns_response()
422 if (resp->header.ancount && resp->answer == NULL) { in parse_dns_response()
/freebsd-12-stable/contrib/sendmail/src/
Ddomain.c577 int ancount, qdcount, buflen; local
751 ancount = ntohs((unsigned short) hp->ancount);
755 while (--ancount >= 0 && cp < eom && nmx < MAXMXHOSTS - 1)
1305 int ancount, qdcount, ret, type, qtype, initial, loopcnt, ttl, sli; local
1544 for (ancount = ntohs((unsigned short) hp->ancount);
1545 --ancount >= 0 && ap < eom;
Dsm_resolve.c292 ans_cnt = ntohs((unsigned short) dr->dns_r_h.ancount);
593 hp->ancount = 0;
617 ans_cnt = ntohs((unsigned short) hp->ancount);
619 hp->ancount = htons((unsigned short) ans_cnt);
/freebsd-12-stable/lib/libc/resolv/
Dres_findzonecut.c282 int n, i, ancount, nscount; in get_soa() local
318 ancount = ns_msg_count(msg, ns_s_an); in get_soa()
320 if (ancount > 0 && rcode == ns_r_noerror) in get_soa()
321 sect = ns_s_an, n = ancount; in get_soa()
Dres_query.c176 if (hp->rcode != NOERROR || ntohs(hp->ancount) == 0) { in res_nquery()
181 ntohs(hp->ancount), in res_nquery()
Dres_debug.c278 int qdcount, ancount, nscount, arcount; in res_pquery() local
289 ancount = ns_msg_count(handle, ns_s_an); in res_pquery()
325 p_section(ns_s_an, opcode), ancount); in res_pquery()
342 if (qdcount == 0 && ancount == 0 && in res_pquery()
Dres_mkquery.c197 hp->ancount = htons(1); in res_nmkquery()
/freebsd-12-stable/sys/netinet/libalias/
Dalias_nbt.c213 u_short ancount; member
796 ntohs(nsh->ancount), in AliasHandleUdpNbtNS()
813 if (ntohs(nsh->ancount) != 0) { in AliasHandleUdpNbtNS()
815 ntohs(nsh->ancount), in AliasHandleUdpNbtNS()
/freebsd-12-stable/contrib/unbound/util/data/
Dmsgencode.c676 uint16_t ancount=0, nscount=0, arcount=0; in reply_info_encode() local
724 if((r=insert_section(&arep, 1, &ancount, buffer, 0, in reply_info_encode()
729 sldns_buffer_write_u16_at(buffer, 6, ancount); in reply_info_encode()
739 if((r=insert_section(rep, rep->an_numrrsets, &ancount, buffer, in reply_info_encode()
744 sldns_buffer_write_u16_at(buffer, 6, ancount); in reply_info_encode()
751 sldns_buffer_write_u16_at(buffer, 6, ancount); in reply_info_encode()
Dmsgparse.h108 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()
/freebsd-12-stable/crypto/heimdal/lib/roken/
Dresolve.h220 unsigned ancount; member
Dresolve.c443 r->h.ancount = (p[6] << 8) | p[7]; in parse_reply()
474 for(i = 0; i < r->h.ancount; i++) { in parse_reply()
/freebsd-12-stable/include/arpa/
Dnameser_compat.h95 unsigned ancount :16; /*%< number of answer entries */ member
/freebsd-12-stable/contrib/ldns/
Dpacket.c554 ldns_pkt_set_ancount(ldns_pkt *packet, uint16_t ancount) in ldns_pkt_set_ancount() argument
556 packet->_header->_ancount = ancount; in ldns_pkt_set_ancount()
/freebsd-12-stable/contrib/unbound/sldns/
Dwire2str.c434 unsigned qdcount, ancount, nscount, arcount, i; in sldns_wire2str_pkt_scan() local
439 ancount = (unsigned)LDNS_ANCOUNT(*d); in sldns_wire2str_pkt_scan()
443 qdcount = ancount = nscount = arcount = 0; in sldns_wire2str_pkt_scan()
455 for(i=0; i<ancount; i++) { in sldns_wire2str_pkt_scan()

12