Home
last modified time | relevance | path

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

12

/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/
H A Dgetdxbyname.c121 int ancount, err, rc, type, class, dx_count, rr_len; in decode_answer() local
139 ancount = ntohs( hp->ancount ); in decode_answer()
140 if ( ancount < 1 ) { in decode_answer()
159 while ( ancount > 0 && err == 0 && p < eom ) { in decode_answer()
/illumos-gate/usr/src/lib/libadutils/common/
H A Dsrv_query.c75 int len, qdcount, ancount; in srv_getdom() local
108 ancount = ntohs(msg.hdr.ancount); in srv_getdom()
120 if (ancount < 1) { in srv_getdom()
259 int i, qdcount, ancount, nscount, arcount; in srv_parse() local
274 ancount = ntohs(hdr->ancount); in srv_parse()
293 *maxcnt = ancount + 2; in srv_parse()
301 for (i = 0; i < ancount; i++) { in srv_parse()
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Ddns_nw.c298 int type, class, ancount, qdcount, haveanswer; in get1101answer() local
320 ancount = ntohs(hp->ancount); in get1101answer()
321 if (!ancount) { in get1101answer()
373 while (--ancount >= 0 && cp < eom) { in get1101answer()
444 int anslen, type, class, ancount, qdcount; in get1101mask() local
482 ancount = ntohs(hp->ancount); in get1101mask()
485 while (--ancount >= 0 && cp < eom) { in get1101mask()
H A Dhesiod.c350 int ancount, qdcount; in get_txt_records() local
376 ancount = ntohs(hp->ancount); in get_txt_records()
391 list = malloc((ancount + 1) * sizeof(char *)); in get_txt_records()
397 for (i = 0; i < ancount; i++) { in get_txt_records()
H A Ddns_ho.c680 int type, class, ancount, qdcount, n, haveanswer, had_error; in gethostans() local
726 ancount = ntohs(hp->ancount); in gethostans()
769 while (ancount-- > 0 && cp < eom && !had_error) { in gethostans()
/illumos-gate/usr/src/cmd/sendmail/src/
H A Ddomain.c220 int ancount, qdcount, buflen; local
343 ancount = ntohs((unsigned short) hp->ancount);
347 while (--ancount >= 0 && cp < eom && nmx < MAXMXHOSTS - 1)
797 int ancount, qdcount; local
1004 for (ancount = ntohs((unsigned short) hp->ancount);
1005 --ancount >= 0 && ap < eom;
H A Dsm_resolve.c201 ans_cnt = ntohs((unsigned short) r->dns_r_h.ancount);
/illumos-gate/usr/src/lib/smbsrv/libsmbns/common/
H A Dsmbns_netbios_name.c208 packet.ancount = 0; /* answer recs */ in smb_end_node_challenge()
504 BE_OUT16(heap, npb->ancount); in smb_name_buf_from_packet()
535 n = npb->ancount; in smb_name_buf_from_packet()
677 uint16_t qdcount, ancount, nscount, arcount; in smb_name_buf_to_packet() local
690 ancount = BE_IN16(scan); scan += 2; in smb_name_buf_to_packet()
697 ((unsigned)ancount * (sizeof (struct resource_record) + ns)) + in smb_name_buf_to_packet()
709 npb->ancount = ancount; in smb_name_buf_to_packet()
732 if (ancount > 0) { in smb_name_buf_to_packet()
735 heap += ancount * sizeof (struct resource_record); in smb_name_buf_to_packet()
755 for (i = 0; i < (ancount + nscount + arcount); i++) { in smb_name_buf_to_packet()
[all …]
H A Dsmbns_netbios.h208 unsigned ancount; /* answer recs */ member
/illumos-gate/usr/src/lib/libresolv/
H A Dres_query.c109 if (hp->rcode != NOERROR || ntohs(hp->ancount) == 0) {
113 ntohs(hp->ancount));
134 if (hp->rcode == NOERROR && ntohs(hp->ancount) > 0)
H A Dres_mkquery.c243 hp->ancount = htons(1);
283 hp->ancount = htons(0);
310 hp->ancount = htons(0);
H A Dres_gethost.c93 int type, class, buflen, ancount, qdcount; local
102 ancount = ntohs(hp->ancount);
137 while (--ancount >= 0 && cp < eom && haveanswer < MAXADDRS) {
H A Dres_debug.c134 fprintf(file, ", ancount = %d", ntohs(hp->ancount));
157 if (n = ntohs(hp->ancount)) {
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_dns.c73 ushort_t id, qdcount, ancount, nscount, arcount; in interpret_dns() local
108 ancount = ntohs(header.ancount); in interpret_dns()
130 if (ancount > 0) { in interpret_dns()
191 if (header.qr || ancount > 0) { in interpret_dns()
193 "%d answer(s)", ancount); in interpret_dns()
195 while (ancount--) { in interpret_dns()
/illumos-gate/usr/src/lib/nsswitch/dns/common/
H A Ddns_common.c411 int ancount, qdcount; in _nss_dns_gethost_withttl() local
601 ancount = ntohs(hp->ancount); in _nss_dns_gethost_withttl()
624 while (ancount-- > 0 && cp < eom && blen < bsize) { in _nss_dns_gethost_withttl()
/illumos-gate/usr/src/lib/libresolv2/common/resolv/
H A Dres_findzonecut.c271 int n, i, ancount, nscount; in get_soa() local
307 ancount = ns_msg_count(msg, ns_s_an); in get_soa()
309 if (ancount > 0 && rcode == ns_r_noerror) in get_soa()
310 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.c295 int qdcount, ancount, nscount, arcount; in res_pquery() local
306 ancount = ns_msg_count(handle, ns_s_an); in res_pquery()
342 p_section(ns_s_an, opcode), ancount); in res_pquery()
359 if (qdcount == 0 && ancount == 0 && in res_pquery()
H A Dres_mkquery.c222 hp->ancount = htons(1); in res_nmkquery()
/illumos-gate/usr/src/lib/libresolv/arpa/
H A Dnameser.h182 u_short ancount; /* number of answer entries */ member
/illumos-gate/usr/src/cmd/krb5/kadmin/kdcmgr/
H A Dklookup.c121 na = ntohs(h->ancount); in main()
/illumos-gate/usr/src/head/arpa/
H A Dnameser_compat.h161 unsigned ancount :16; /* number of answer entries */ member
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Ddnsglue.c264 nanswers = ntohs((unsigned short)hdr->ancount); in initparse()
/illumos-gate/usr/src/lib/libresolv2/common/nameser/
H A Dns_verify.c74 n = ns_skiprr(cp, eom, ns_s_an, ntohs(hp->ancount)); in ns_find_tsig()
/illumos-gate/usr/src/lib/libmapid/common/
H A Dmapid.c417 an_cnt = ntohs(hp->ancount); in resolv_decode()

12