Home
last modified time | relevance | path

Searched refs:nscount (Results 1 – 23 of 23) sorted by relevance

/illumos-gate/usr/src/lib/libresolv2/common/resolv/
H A Dres_update.c96 int nzones = 0, nscount = 0, n; in res_nupdate() local
162 nscount = res_getservers(statp, nsaddrs, MAXNS); in res_nupdate()
180 res_setservers(statp, nsaddrs, nscount); in res_nupdate()
181 nscount = 0; in res_nupdate()
191 if (nscount != 0) in res_nupdate()
192 res_setservers(statp, nsaddrs, nscount); in res_nupdate()
H A Dres_send.c180 for (ns = 0; ns < statp->nscount; ns++) { in res_ourserver_p()
193 for (ns = 0; ns < statp->nscount; ns++) { in res_ourserver_p()
314 if (statp->nscount == 0 || EXT(statp).ext == NULL) { in res_nsend()
332 if (EXT(statp).nscount != 0) { in res_nsend()
337 if (EXT(statp).nscount != statp->nscount) in res_nsend()
340 for (ns = 0; ns < statp->nscount; ns++) { in res_nsend()
364 EXT(statp).nscount = 0; in res_nsend()
371 if (EXT(statp).nscount == 0) { in res_nsend()
372 for (ns = 0; ns < statp->nscount; ns++) { in res_nsend()
380 EXT(statp).nscount = statp->nscount; in res_nsend()
[all …]
H A Dres_init.c230 statp->nscount = 0; in __res_vinit()
237 statp->_u._ext.nscount = 0; in __res_vinit()
557 statp->nscount = nserv; in __res_vinit()
825 for (ns = 0; ns < statp->_u._ext.nscount; ns++) { in res_nclose()
865 statp->_u._ext.nscount = 0; in res_setservers()
903 statp->nscount = nserv; in res_setservers()
913 for (i = 0; i < statp->nscount && i < cnt; i++) { in res_getservers()
950 return (statp->nscount); in res_getservers()
H A Dres_findzonecut.c271 int n, i, ancount, nscount; in get_soa() local
308 nscount = ns_msg_count(msg, ns_s_ns); in get_soa()
311 else if (nscount > 0) in get_soa()
312 sect = ns_s_ns, n = nscount; in get_soa()
H A Dres_debug.c295 int qdcount, ancount, nscount, arcount; in res_pquery() local
307 nscount = ns_msg_count(handle, ns_s_ns); in res_pquery()
344 p_section(ns_s_ns, opcode), nscount); in res_pquery()
360 nscount == 0 && arcount == 0) in res_pquery()
H A Dres_sendsigned.c76 nstatp->nscount = 1; in res_nsendsigned()
H A Dres_query.c175 ntohs(hp->nscount), in res_nquery()
H A Dres_mkupdate.c706 hp->nscount = htons(counts[2]); in res_nmkupdate()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_netbios.c259 int headerflags, qcount, acount, nscount, arcount; in interpret_netbios_ns() local
275 nscount = getshort(data); data += 2; in interpret_netbios_ns()
300 sprintf(get_line(0, 0), "Name Service Count = %d", nscount); in interpret_netbios_ns()
327 if ((acount || nscount || arcount) || in interpret_netbios_ns()
328 (qcount+acount+nscount+arcount == 0)) { in interpret_netbios_ns()
H A Dsnoop_dns.c73 ushort_t id, qdcount, ancount, nscount, arcount; in interpret_dns() local
109 nscount = ntohs(header.nscount); in interpret_dns()
206 if (header.qr || nscount > 0) { in interpret_dns()
208 "%d name server resource(s)", nscount); in interpret_dns()
210 while (nscount--) { in interpret_dns()
/illumos-gate/usr/src/lib/smbsrv/libsmbns/common/
H A Dsmbns_netbios_name.c210 packet.nscount = 0; /* authority recs */ in smb_end_node_challenge()
507 BE_OUT16(heap, npb->nscount); in smb_name_buf_from_packet()
538 n = npb->nscount; in smb_name_buf_from_packet()
677 uint16_t qdcount, ancount, nscount, arcount; in smb_name_buf_to_packet() local
691 nscount = BE_IN16(scan); scan += 2; in smb_name_buf_to_packet()
698 ((unsigned)nscount * (sizeof (struct resource_record) + ns)) + in smb_name_buf_to_packet()
710 npb->nscount = nscount; in smb_name_buf_to_packet()
738 if (nscount > 0) { in smb_name_buf_to_packet()
741 heap += nscount * 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.h209 unsigned nscount; /* authority recs */ member
/illumos-gate/usr/src/lib/libresolv/
H A Dres_send.c178 for (ns = 0; ns < _res.nscount; ns++) {
356 if (_res.nscount == 1 ||
413 timeout.tv_sec /= _res.nscount;
H A Dres_init.c106 _res.nscount = 1; in res_init()
271 _res.nscount = nserv; in res_init()
H A Dresolv.h72 int nscount; /* number of name servers */ member
H A Dres_debug.c135 fprintf(file, ", nscount = %d", ntohs(hp->nscount));
169 if (n = ntohs(hp->nscount)) {
/illumos-gate/usr/src/lib/libadutils/common/
H A Dsrv_query.c259 int i, qdcount, ancount, nscount, arcount; in srv_parse() local
275 nscount = ntohs(hdr->nscount); in srv_parse()
352 len = ns_skiprr(ptr, eom, ns_s_ns, nscount); in srv_parse()
/illumos-gate/usr/src/head/
H A Dresolv.h192 int nscount; /* number of name servers */ member
221 uint16_t nscount; member
/illumos-gate/usr/src/lib/libresolv/arpa/
H A Dnameser.h183 u_short nscount; /* number of authority entries */ member
/illumos-gate/usr/src/head/arpa/
H A Dnameser_compat.h162 unsigned nscount :16; /* number of authority entries */ member
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/
H A Ddfs.c1760 uint32_t nscount; in dfs_cache_nscount() local
1763 nscount = (*dfs_cached_ns == '\0') ? 0 : 1; in dfs_cache_nscount()
1766 return (nscount); in dfs_cache_nscount()
/illumos-gate/usr/src/lib/libresolv2/common/nameser/
H A Dns_verify.c79 n = ns_skiprr(cp, eom, ns_s_ns, ntohs(hp->nscount)); in ns_find_tsig()
/illumos-gate/usr/src/lib/libmapid/common/
H A Dmapid.c418 ns_cnt = ntohs(hp->nscount); in resolv_decode()