Home
last modified time | relevance | path

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

12

/freebsd/contrib/tcpdump/
H A Dprint-domain.c907 u_int qdcount, ancount, nscount, arcount; in domain_print() local
954 ancount = GET_BE_U_2(np->ancount); in domain_print()
968 for (i = 0; i < ancount + nscount; i++) { in domain_print()
1030 ND_PRINT(" %u/%u/%u", ancount, nscount, arcount); in domain_print()
1031 if (ancount) { in domain_print()
1034 ancount--; in domain_print()
1035 while (cp < ndo->ndo_snapend && ancount) { in domain_print()
1039 ancount--; in domain_print()
1042 if (ancount) in domain_print()
1090 if (ancount != 1) in domain_print()
[all …]
H A Dnameser.h303 nd_uint16_t ancount; /* number of answer entries */ member
H A Dprint-smb.c1084 u_int qdcount, ancount, nscount, arcount; in nbt_udp137_print() local
1095 ancount = GET_BE_U_2(data + 6); in nbt_udp137_print()
1117 name_trn_id, opcode, nm_flags, rcode, qdcount, ancount, nscount, in nbt_udp137_print()
1122 total = ancount + nscount + arcount; in nbt_udp137_print()
/freebsd/usr.sbin/pkg/
H A Ddns_utils.c122 int len, qdcount, ancount, n, i, f, l; in dns_getsrvinfo() local
130 ancount = ntohs(q.hdr.ancount); in dns_getsrvinfo()
142 res = calloc(ancount, sizeof(struct dns_srvinfo *)); in dns_getsrvinfo()
147 while (ancount > 0 && p < end) { in dns_getsrvinfo()
148 ancount--; in dns_getsrvinfo()
/freebsd/lib/libc/net/
H A Dhesiod.c351 int ancount, qdcount, i, j, n, skip, type, class, len; in get_txt_records() local
371 ancount = ntohs(hp->ancount); in get_txt_records()
390 list = malloc((ancount + 1) * sizeof(char *)); in get_txt_records()
397 for (i = 0; i < ancount; i++) { in get_txt_records()
446 if (i < ancount) { in get_txt_records()
H A Dgetnetbydns.c160 int type, class, ancount, qdcount, haveanswer; in getnetanswer() local
181 ancount = ntohs(hp->ancount); /* #/records in the answer section */ in getnetanswer()
199 while (--ancount >= 0 && cp < eom) { in getnetanswer()
H A 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()
2709 int ancount; in res_queryN() local
2712 ancount = 0; in res_queryN()
2781 if (hp->rcode != NOERROR || ntohs(hp->ancount) == 0) { in res_queryN()
2786 ntohs(hp->ancount)); in res_queryN()
2791 ancount += ntohs(hp->ancount); in res_queryN()
2798 if (ancount == 0) { in res_queryN()
[all …]
H A Dgethostbydns.c143 int type, class, ancount, qdcount; in gethostanswer() local
169 ancount = ntohs(hp->ancount); in gethostanswer()
209 while (ancount-- > 0 && cp < eom && !had_error) { in gethostanswer()
/freebsd/contrib/sendmail/contrib/
H A Dbitdomain.c216 int ancount, qdcount; local
281 for (ancount = ntohs(hp->ancount); --ancount >= 0 && ap < eom; ap += n)
/freebsd/crypto/openssh/openbsd-compat/
H A Dgetrrsetbyname.c277 rrset->rri_nrdatas = response->header.ancount; in getrrsetbyname()
411 resp->header.ancount = ntohs(resp->header.ancount); in parse_dns_response()
431 resp->header.ancount); in parse_dns_response()
432 if (resp->header.ancount && resp->answer == NULL) { in parse_dns_response()
/freebsd/contrib/sendmail/src/
H A Ddomain.c879 int ancount, qdcount, buflen; local
1055 ancount = ntohs((unsigned short) hp->ancount);
1059 while (--ancount >= 0 && cp < eom && nmx < MAXMXHOSTS - 1)
1629 int ancount, qdcount, ret, type, qtype, initial, loopcnt, ttl, sli; local
1868 for (ancount = ntohs((unsigned short) hp->ancount);
1869 --ancount >= 0 && ap < eom;
H A Dsm_resolve.c295 ans_cnt = ntohs((unsigned short) dr->dns_r_h.ancount);
596 hp->ancount = 0;
620 ans_cnt = ntohs((unsigned short) hp->ancount);
622 hp->ancount = htons((unsigned short) ans_cnt);
/freebsd/lib/libc/resolv/
H A Dres_findzonecut.c276 int n, i, ancount, nscount; in get_soa() local
312 ancount = ns_msg_count(msg, ns_s_an); in get_soa()
314 if (ancount > 0 && rcode == ns_r_noerror) in get_soa()
315 sect = ns_s_an, n = ancount; in get_soa()
H A Dres_query.c169 if (hp->rcode != NOERROR || ntohs(hp->ancount) == 0) { in res_nquery()
174 ntohs(hp->ancount), in res_nquery()
H A Dres_debug.c271 int qdcount, ancount, nscount, arcount; in res_pquery() local
282 ancount = ns_msg_count(handle, ns_s_an); in res_pquery()
318 p_section(ns_s_an, opcode), ancount); in res_pquery()
335 if (qdcount == 0 && ancount == 0 && in res_pquery()
H A Dres_mkquery.c190 hp->ancount = htons(1); in res_nmkquery()
/freebsd/sys/netinet/libalias/
H A Dalias_nbt.c211 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/contrib/unbound/util/data/
H A 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()
H A Dmsgparse.h113 uint16_t ancount; member
H A Dmsgparse.c920 msg->ancount = sldns_buffer_read_u16(pkt); in parse_packet()
928 msg->ancount, &msg->an_rrsets)) != 0) in parse_packet()
/freebsd/crypto/heimdal/lib/roken/
H A Dresolve.h220 unsigned ancount; member
H A 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/include/arpa/
H A Dnameser_compat.h94 unsigned ancount :16; /*%< number of answer entries */ member
/freebsd/contrib/ldns/
H A Dpacket.c570 ldns_pkt_set_ancount(ldns_pkt *packet, uint16_t ancount) in ldns_pkt_set_ancount() argument
572 packet->_header->_ancount = ancount; in ldns_pkt_set_ancount()
/freebsd/contrib/unbound/sldns/
H A Dwire2str.c439 unsigned qdcount, ancount, nscount, arcount, i; in sldns_wire2str_pkt_scan() local
444 ancount = (unsigned)LDNS_ANCOUNT(*d); in sldns_wire2str_pkt_scan()
448 qdcount = ancount = nscount = arcount = 0; in sldns_wire2str_pkt_scan()
460 for(i=0; i<ancount; i++) { in sldns_wire2str_pkt_scan()

12