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

12

/freebsd-10-stable/usr.sbin/pkg/
H A Ddns_utils.c120 int len, qdcount, ancount, n, i, f, l; local
128 ancount = ntohs(q.hdr.ancount);
140 res = calloc(ancount, sizeof(struct dns_srvinfo *));
145 while (ancount > 0 && p < end) {
146 ancount--;
/freebsd-10-stable/contrib/tcpdump/
H A Dprint-domain.c584 register int qdcount, ancount, nscount, arcount; local
592 ancount = EXTRACT_16BITS(&np->ancount);
624 printf(" %d/%d/%d", ancount, nscount, arcount);
625 if (ancount--) {
628 while (cp < snapend && ancount--) {
634 if (ancount > 0)
678 if (ancount != 1)
679 printf(" [%da]", ancount);
682 if (ancount)
[all...]
H A Dnameser.h232 u_int16_t ancount; /* number of answer entries */ member in struct:__anon4516
H A Dprint-smb.c1094 int qdcount, ancount, nscount, arcount; local
1106 ancount = EXTRACT_16BITS(data + 6);
1151 name_trn_id, opcode, nm_flags, rcode, qdcount, ancount, nscount,
1156 total = ancount + nscount + arcount;
/freebsd-10-stable/contrib/sendmail/contrib/
H A Dbitdomain.c216 int ancount, qdcount; local
281 for (ancount = ntohs(hp->ancount); --ancount >= 0 && ap < eom; ap += n)
/freebsd-10-stable/lib/libc/net/
H A Dhesiod.c376 int ancount, qdcount, i, j, n, skip, type, class, len; local
396 ancount = ntohs(hp->ancount);
415 list = malloc((ancount + 1) * sizeof(char *));
422 for (i = 0; i < ancount; i++) {
471 if (i < ancount) {
H A Dgetnetbydns.c164 int type, class, ancount, qdcount, haveanswer; local
185 ancount = ntohs(hp->ancount); /* #/records in the answer section */
203 while (--ancount >= 0 && cp < eom) {
H A Dgethostbydns.c152 int type, class, ancount, qdcount; local
178 ancount = ntohs(hp->ancount);
218 while (ancount-- > 0 && cp < eom && !had_error) {
H A Dgetaddrinfo.c1994 int type, class, ancount, qdcount; local
2018 ancount = ntohs(hp->ancount);
2050 while (ancount-- > 0 && cp < eom && !had_error) {
2188 RES_SET_H_ERRNO(res, ntohs(hp->ancount) > 0 ? NO_DATA : NO_RECOVERY);
2707 int ancount; local
2710 ancount = 0;
2779 if (hp->rcode != NOERROR || ntohs(hp->ancount) == 0) {
2783 printf(";; rcode = %u, ancount=%u\n", hp->rcode,
2784 ntohs(hp->ancount));
[all...]
/freebsd-10-stable/contrib/sendmail/src/
H A Ddomain.c201 int ancount, qdcount, buflen; local
324 ancount = ntohs((unsigned short) hp->ancount);
328 while (--ancount >= 0 && cp < eom && nmx < MAXMXHOSTS - 1)
778 int ancount, qdcount; local
985 for (ancount = ntohs((unsigned short) hp->ancount);
986 --ancount >= 0 && ap < eom;
H A Dsm_resolve.c205 ans_cnt = ntohs((unsigned short) r->dns_r_h.ancount);
/freebsd-10-stable/crypto/openssh/openbsd-compat/
H A Dgetrrsetbyname.c272 rrset->rri_nrdatas = response->header.ancount;
402 resp->header.ancount = ntohs(resp->header.ancount);
422 resp->header.ancount);
423 if (resp->header.ancount && resp->answer == NULL) {
/freebsd-10-stable/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-10-stable/include/arpa/
H A Dnameser_compat.h92 unsigned ancount :16; /*%< number of answer entries */ member in struct:__anon5555
/freebsd-10-stable/contrib/unbound/util/data/
H A Dmsgparse.h96 uint16_t ancount; member in struct:msg_parse
H A Dmsgencode.c630 uint16_t ancount=0, nscount=0, arcount=0; local
666 if((r=insert_section(rep, rep->an_numrrsets, &ancount, buffer,
671 sldns_buffer_write_u16_at(buffer, 6, ancount);
678 sldns_buffer_write_u16_at(buffer, 6, ancount);
H A Dmsgparse.c910 msg->ancount = sldns_buffer_read_u16(pkt);
918 msg->ancount, &msg->an_rrsets)) != 0)
/freebsd-10-stable/lib/libc/resolv/
H A Dres_findzonecut.c280 int n, i, ancount, nscount; local
316 ancount = ns_msg_count(msg, ns_s_an);
318 if (ancount > 0 && rcode == ns_r_noerror)
319 sect = ns_s_an, n = ancount;
H A Dres_query.c175 if (hp->rcode != NOERROR || ntohs(hp->ancount) == 0) {
180 ntohs(hp->ancount),
H A Dres_debug.c277 int qdcount, ancount, nscount, arcount; local
288 ancount = ns_msg_count(handle, ns_s_an);
324 p_section(ns_s_an, opcode), ancount);
341 if (qdcount == 0 && ancount == 0 &&
H A Dres_mkquery.c196 hp->ancount = htons(1);
/freebsd-10-stable/sys/netinet/libalias/
H A Dalias_nbt.c216 u_short ancount; member in struct:__anon10924
806 ntohs(nsh->ancount),
823 if (ntohs(nsh->ancount) != 0) {
825 ntohs(nsh->ancount),
/freebsd-10-stable/contrib/ldns/
H A Dpacket.c548 ldns_pkt_set_ancount(ldns_pkt *packet, uint16_t ancount) argument
550 packet->_header->_ancount = ancount;
/freebsd-10-stable/contrib/unbound/sldns/
H A Dwire2str.c331 unsigned qdcount, ancount, nscount, arcount, i; local
336 ancount = (unsigned)LDNS_ANCOUNT(*d);
340 qdcount = ancount = nscount = arcount = 0;
352 for(i=0; i<ancount; i++) {

Completed in 177 milliseconds

12