Home
last modified time | relevance | path

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

12

/titanic_50/usr/src/lib/libldap5/sources/ldap/common/
H A Dgetdxbyname.c123 int ancount, err, rc, type, class, dx_count, rr_len; in decode_answer() local
141 ancount = ntohs( hp->ancount ); in decode_answer()
142 if ( ancount < 1 ) { in decode_answer()
161 while ( ancount > 0 && err == 0 && p < eom ) { in decode_answer()
/titanic_50/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()
/titanic_50/usr/src/lib/libresolv2/common/irs/
H A Ddns_nw.c302 int type, class, ancount, qdcount, haveanswer; in get1101answer() local
324 ancount = ntohs(hp->ancount); in get1101answer()
325 if (!ancount) { in get1101answer()
377 while (--ancount >= 0 && cp < eom) { in get1101answer()
448 int anslen, type, class, ancount, qdcount; in get1101mask() local
486 ancount = ntohs(hp->ancount); in get1101mask()
489 while (--ancount >= 0 && cp < eom) { in get1101mask()
H A Dhesiod.c354 int ancount, qdcount; in get_txt_records() local
380 ancount = ntohs(hp->ancount); in get_txt_records()
395 list = malloc((ancount + 1) * sizeof(char *)); in get_txt_records()
401 for (i = 0; i < ancount; i++) { in get_txt_records()
H A Ddns_ho.c684 int type, class, ancount, qdcount, n, haveanswer, had_error; in gethostans() local
730 ancount = ntohs(hp->ancount); in gethostans()
773 while (ancount-- > 0 && cp < eom && !had_error) { in gethostans()
/titanic_50/usr/src/cmd/sendmail/src/
H A Ddomain.c222 int ancount, qdcount, buflen; local
345 ancount = ntohs((unsigned short) hp->ancount);
349 while (--ancount >= 0 && cp < eom && nmx < MAXMXHOSTS - 1)
799 int ancount, qdcount; local
1006 for (ancount = ntohs((unsigned short) hp->ancount);
1007 --ancount >= 0 && ap < eom;
H A Dsm_resolve.c203 ans_cnt = ntohs((unsigned short) r->dns_r_h.ancount);
/titanic_50/usr/src/lib/libresolv/
H A Dres_query.c111 if (hp->rcode != NOERROR || ntohs(hp->ancount) == 0) {
115 ntohs(hp->ancount));
136 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)) {
/titanic_50/usr/src/lib/smbsrv/libsmbns/common/
H A Dsmbns_netbios_name.c206 packet.ancount = 0; /* answer recs */ in smb_end_node_challenge()
506 BE_OUT16(heap, npb->ancount); in smb_name_buf_from_packet()
537 n = npb->ancount; in smb_name_buf_from_packet()
679 uint16_t qdcount, ancount, nscount, arcount; in smb_name_buf_to_packet() local
692 ancount = BE_IN16(scan); scan += 2; in smb_name_buf_to_packet()
699 ((unsigned)ancount * (sizeof (struct resource_record) + ns)) + in smb_name_buf_to_packet()
711 npb->ancount = ancount; in smb_name_buf_to_packet()
734 if (ancount > 0) { in smb_name_buf_to_packet()
737 heap += ancount * sizeof (struct resource_record); in smb_name_buf_to_packet()
757 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
/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_dns.c75 ushort_t id, qdcount, ancount, nscount, arcount; in interpret_dns() local
110 ancount = ntohs(header.ancount); in interpret_dns()
132 if (ancount > 0) { in interpret_dns()
193 if (header.qr || ancount > 0) { in interpret_dns()
195 "%d answer(s)", ancount); in interpret_dns()
197 while (ancount--) { in interpret_dns()
/titanic_50/usr/src/lib/nsswitch/dns/common/
H A Ddns_common.c418 int ancount, qdcount; in _nss_dns_gethost_withttl() local
608 ancount = ntohs(hp->ancount); in _nss_dns_gethost_withttl()
631 while (ancount-- > 0 && cp < eom && blen < bsize) { in _nss_dns_gethost_withttl()
/titanic_50/usr/src/lib/libresolv2/common/resolv/
H A Dres_findzonecut.c275 int n, i, ancount, nscount; in get_soa() local
311 ancount = ns_msg_count(msg, ns_s_an); in get_soa()
313 if (ancount > 0 && rcode == ns_r_noerror) in get_soa()
314 sect = ns_s_an, n = ancount; in get_soa()
H A Dres_query.c174 if (hp->rcode != NOERROR || ntohs(hp->ancount) == 0) { in res_nquery()
179 ntohs(hp->ancount), in res_nquery()
H A Dres_debug.c300 int qdcount, ancount, nscount, arcount; in res_pquery() local
311 ancount = ns_msg_count(handle, ns_s_an); in res_pquery()
347 p_section(ns_s_an, opcode), ancount); in res_pquery()
364 if (qdcount == 0 && ancount == 0 && in res_pquery()
H A Dres_mkquery.c227 hp->ancount = htons(1); in res_nmkquery()
/titanic_50/usr/src/lib/libresolv/arpa/
H A Dnameser.h184 u_short ancount; /* number of answer entries */ member
/titanic_50/usr/src/cmd/krb5/kadmin/kdcmgr/
H A Dklookup.c119 na = ntohs(h->ancount); in main()
/titanic_50/usr/src/head/arpa/
H A Dnameser_compat.h161 unsigned ancount :16; /* number of answer entries */ member
/titanic_50/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Ddnsglue.c264 nanswers = ntohs((unsigned short)hdr->ancount); in initparse()
/titanic_50/usr/src/lib/libresolv2/common/nameser/
H A Dns_verify.c80 n = ns_skiprr(cp, eom, ns_s_an, ntohs(hp->ancount)); in ns_find_tsig()
/titanic_50/usr/src/lib/libmapid/common/
H A Dmapid.c417 an_cnt = ntohs(hp->ancount); in resolv_decode()

12