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

12

/freebsd-current/usr.sbin/pkg/
H A Ddns_utils.c122 int len, qdcount, ancount, n, i, f, l; local
130 ancount = ntohs(q.hdr.ancount);
142 res = calloc(ancount, sizeof(struct dns_srvinfo *));
147 while (ancount > 0 && p < end) {
148 ancount--;
/freebsd-current/contrib/tcpdump/
H A Dprint-domain.c905 u_int qdcount, ancount, nscount, arcount; local
952 ancount = GET_BE_U_2(np->ancount);
966 for (i = 0; i < ancount + nscount; i++) {
1028 ND_PRINT(" %u/%u/%u", ancount, nscount, arcount);
1029 if (ancount) {
1032 ancount--;
1033 while (cp < ndo->ndo_snapend && ancount) {
1037 ancount--;
1040 if (ancount)
[all...]
H A Dnameser.h303 nd_uint16_t ancount; /* number of answer entries */ member in struct:__anon3581
H A Dprint-smb.c1083 u_int qdcount, ancount, nscount, arcount; local
1094 ancount = GET_BE_U_2(data + 6);
1116 name_trn_id, opcode, nm_flags, rcode, qdcount, ancount, nscount,
1121 total = ancount + nscount + arcount;
/freebsd-current/lib/libc/net/
H A Dhesiod.c351 int ancount, qdcount, i, j, n, skip, type, class, len; local
371 ancount = ntohs(hp->ancount);
390 list = malloc((ancount + 1) * sizeof(char *));
397 for (i = 0; i < ancount; i++) {
446 if (i < ancount) {
H A Dgetnetbydns.c160 int type, class, ancount, qdcount, haveanswer; local
181 ancount = ntohs(hp->ancount); /* #/records in the answer section */
199 while (--ancount >= 0 && cp < eom) {
H A Dgethostbydns.c143 int type, class, ancount, qdcount; local
169 ancount = ntohs(hp->ancount);
209 while (ancount-- > 0 && cp < eom && !had_error) {
H A Dgetaddrinfo.c1993 int type, class, ancount, qdcount; local
2017 ancount = ntohs(hp->ancount);
2049 while (ancount-- > 0 && cp < eom && !had_error) {
2187 RES_SET_H_ERRNO(res, ntohs(hp->ancount) > 0 ? NO_DATA : NO_RECOVERY);
2709 int ancount; local
2712 ancount = 0;
2781 if (hp->rcode != NOERROR || ntohs(hp->ancount) == 0) {
2785 printf(";; rcode = %u, ancount=%u\n", hp->rcode,
2786 ntohs(hp->ancount));
[all...]
/freebsd-current/contrib/sendmail/contrib/
H A Dbitdomain.c216 int ancount, qdcount; local
281 for (ancount = ntohs(hp->ancount); --ancount >= 0 && ap < eom; ap += n)
/freebsd-current/crypto/heimdal/lib/roken/
H A Dresolve.h220 unsigned ancount; member in struct:rk_dns_header
H A Dresolve.c443 r->h.ancount = (p[6] << 8) | p[7];
474 for(i = 0; i < r->h.ancount; i++) {
/freebsd-current/crypto/openssh/openbsd-compat/
H A Dgetrrsetbyname.c277 rrset->rri_nrdatas = response->header.ancount;
410 resp->header.ancount = ntohs(resp->header.ancount);
430 resp->header.ancount);
431 if (resp->header.ancount && resp->answer == NULL) {
/freebsd-current/include/arpa/
H A Dnameser_compat.h94 unsigned ancount :16; /*%< number of answer entries */ member in struct:__anon18
/freebsd-current/sys/netinet/libalias/
H A Dalias_nbt.c211 u_short ancount; member in struct:__anon5563
796 ntohs(nsh->ancount),
813 if (ntohs(nsh->ancount) != 0) {
815 ntohs(nsh->ancount),
/freebsd-current/lib/libc/resolv/
H A Dres_findzonecut.c276 int n, i, ancount, nscount; local
312 ancount = ns_msg_count(msg, ns_s_an);
314 if (ancount > 0 && rcode == ns_r_noerror)
315 sect = ns_s_an, n = ancount;
H A Dres_query.c169 if (hp->rcode != NOERROR || ntohs(hp->ancount) == 0) {
174 ntohs(hp->ancount),
H A Dres_mkquery.c190 hp->ancount = htons(1);
H A Dres_debug.c271 int qdcount, ancount, nscount, arcount; local
282 ancount = ns_msg_count(handle, ns_s_an);
318 p_section(ns_s_an, opcode), ancount);
335 if (qdcount == 0 && ancount == 0 &&
/freebsd-current/contrib/unbound/util/data/
H A Dmsgparse.h110 uint16_t ancount; member in struct:msg_parse
H A Dmsgencode.c676 uint16_t ancount=0, nscount=0, arcount=0; local
724 if((r=insert_section(&arep, 1, &ancount, buffer, 0,
729 sldns_buffer_write_u16_at(buffer, 6, ancount);
739 if((r=insert_section(rep, rep->an_numrrsets, &ancount, buffer,
744 sldns_buffer_write_u16_at(buffer, 6, ancount);
751 sldns_buffer_write_u16_at(buffer, 6, ancount);
H A Dmsgparse.c920 msg->ancount = sldns_buffer_read_u16(pkt);
928 msg->ancount, &msg->an_rrsets)) != 0)
/freebsd-current/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-current/contrib/ldns/
H A Dpacket.c570 ldns_pkt_set_ancount(ldns_pkt *packet, uint16_t ancount) argument
572 packet->_header->_ancount = ancount;
/freebsd-current/contrib/unbound/sldns/
H A Dwire2str.c434 unsigned qdcount, ancount, nscount, arcount, i; local
439 ancount = (unsigned)LDNS_ANCOUNT(*d);
443 qdcount = ancount = nscount = arcount = 0;
455 for(i=0; i<ancount; i++) {

Completed in 379 milliseconds

12