/freebsd/contrib/tcpdump/ |
H A D | print-domain.c | 907 u_int qdcount, ancount, nscount, arcount; in domain_print() local 954 ancount = GET_BE_U_2(np->ancount); in domain_print() 968 for (i = 0; i < ancount + nscount; i++) { in domain_print() 1030 ND_PRINT(" %u/%u/%u", ancount, nscount, arcount); in domain_print() 1031 if (ancount) { in domain_print() 1034 ancount--; in domain_print() 1035 while (cp < ndo->ndo_snapend && ancount) { in domain_print() 1039 ancount--; in domain_print() 1042 if (ancount) in domain_print() 1090 if (ancount != 1) in domain_print() [all …]
|
H A D | nameser.h | 303 nd_uint16_t ancount; /* number of answer entries */ member
|
H A D | print-smb.c | 1084 u_int qdcount, ancount, nscount, arcount; in nbt_udp137_print() local 1095 ancount = GET_BE_U_2(data + 6); in nbt_udp137_print() 1117 name_trn_id, opcode, nm_flags, rcode, qdcount, ancount, nscount, in nbt_udp137_print() 1122 total = ancount + nscount + arcount; in nbt_udp137_print()
|
/freebsd/usr.sbin/pkg/ |
H A D | dns_utils.c | 122 int len, qdcount, ancount, n, i, f, l; in dns_getsrvinfo() local 130 ancount = ntohs(q.hdr.ancount); in dns_getsrvinfo() 142 res = calloc(ancount, sizeof(struct dns_srvinfo *)); in dns_getsrvinfo() 147 while (ancount > 0 && p < end) { in dns_getsrvinfo() 148 ancount--; in dns_getsrvinfo()
|
/freebsd/lib/libc/net/ |
H A D | hesiod.c | 351 int ancount, qdcount, i, j, n, skip, type, class, len; in get_txt_records() local 371 ancount = ntohs(hp->ancount); in get_txt_records() 390 list = malloc((ancount + 1) * sizeof(char *)); in get_txt_records() 397 for (i = 0; i < ancount; i++) { in get_txt_records() 446 if (i < ancount) { in get_txt_records()
|
H A D | getnetbydns.c | 160 int type, class, ancount, qdcount, haveanswer; in getnetanswer() local 181 ancount = ntohs(hp->ancount); /* #/records in the answer section */ in getnetanswer() 199 while (--ancount >= 0 && cp < eom) { in getnetanswer()
|
H A D | getaddrinfo.c | 1993 int type, class, ancount, qdcount; in getanswer() local 2017 ancount = ntohs(hp->ancount); in getanswer() 2049 while (ancount-- > 0 && cp < eom && !had_error) { in getanswer() 2187 RES_SET_H_ERRNO(res, ntohs(hp->ancount) > 0 ? NO_DATA : NO_RECOVERY); in getanswer() 2709 int ancount; in res_queryN() local 2712 ancount = 0; in res_queryN() 2781 if (hp->rcode != NOERROR || ntohs(hp->ancount) == 0) { in res_queryN() 2786 ntohs(hp->ancount)); in res_queryN() 2791 ancount += ntohs(hp->ancount); in res_queryN() 2798 if (ancount == 0) { in res_queryN() [all …]
|
H A D | gethostbydns.c | 143 int type, class, ancount, qdcount; in gethostanswer() local 169 ancount = ntohs(hp->ancount); in gethostanswer() 209 while (ancount-- > 0 && cp < eom && !had_error) { in gethostanswer()
|
/freebsd/contrib/sendmail/contrib/ |
H A D | bitdomain.c | 216 int ancount, qdcount; local 281 for (ancount = ntohs(hp->ancount); --ancount >= 0 && ap < eom; ap += n)
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | getrrsetbyname.c | 277 rrset->rri_nrdatas = response->header.ancount; in getrrsetbyname() 411 resp->header.ancount = ntohs(resp->header.ancount); in parse_dns_response() 431 resp->header.ancount); in parse_dns_response() 432 if (resp->header.ancount && resp->answer == NULL) { in parse_dns_response()
|
/freebsd/contrib/sendmail/src/ |
H A D | domain.c | 879 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 D | sm_resolve.c | 295 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/lib/libc/resolv/ |
H A D | res_findzonecut.c | 276 int n, i, ancount, nscount; in get_soa() local 312 ancount = ns_msg_count(msg, ns_s_an); in get_soa() 314 if (ancount > 0 && rcode == ns_r_noerror) in get_soa() 315 sect = ns_s_an, n = ancount; in get_soa()
|
H A D | res_query.c | 169 if (hp->rcode != NOERROR || ntohs(hp->ancount) == 0) { in res_nquery() 174 ntohs(hp->ancount), in res_nquery()
|
H A D | res_debug.c | 271 int qdcount, ancount, nscount, arcount; in res_pquery() local 282 ancount = ns_msg_count(handle, ns_s_an); in res_pquery() 318 p_section(ns_s_an, opcode), ancount); in res_pquery() 335 if (qdcount == 0 && ancount == 0 && in res_pquery()
|
H A D | res_mkquery.c | 190 hp->ancount = htons(1); in res_nmkquery()
|
/freebsd/sys/netinet/libalias/ |
H A D | alias_nbt.c | 211 u_short ancount; member 796 ntohs(nsh->ancount), in AliasHandleUdpNbtNS() 813 if (ntohs(nsh->ancount) != 0) { in AliasHandleUdpNbtNS() 815 ntohs(nsh->ancount), in AliasHandleUdpNbtNS()
|
/freebsd/contrib/unbound/util/data/ |
H A D | msgencode.c | 690 uint16_t ancount=0, nscount=0, arcount=0; in reply_info_encode() local 739 if((r=insert_section(&arep, 1, &ancount, buffer, 0, in reply_info_encode() 744 sldns_buffer_write_u16_at(buffer, 6, ancount); in reply_info_encode() 754 if((r=insert_section(rep, rep->an_numrrsets, &ancount, buffer, in reply_info_encode() 759 sldns_buffer_write_u16_at(buffer, 6, ancount); in reply_info_encode() 766 sldns_buffer_write_u16_at(buffer, 6, ancount); in reply_info_encode()
|
H A D | msgparse.h | 113 uint16_t ancount; member
|
H A D | msgparse.c | 920 msg->ancount = sldns_buffer_read_u16(pkt); in parse_packet() 928 msg->ancount, &msg->an_rrsets)) != 0) in parse_packet()
|
/freebsd/crypto/heimdal/lib/roken/ |
H A D | resolve.h | 220 unsigned ancount; member
|
H A D | resolve.c | 443 r->h.ancount = (p[6] << 8) | p[7]; in parse_reply() 474 for(i = 0; i < r->h.ancount; i++) { in parse_reply()
|
/freebsd/include/arpa/ |
H A D | nameser_compat.h | 94 unsigned ancount :16; /*%< number of answer entries */ member
|
/freebsd/contrib/ldns/ |
H A D | packet.c | 570 ldns_pkt_set_ancount(ldns_pkt *packet, uint16_t ancount) in ldns_pkt_set_ancount() argument 572 packet->_header->_ancount = ancount; in ldns_pkt_set_ancount()
|
/freebsd/contrib/unbound/sldns/ |
H A D | wire2str.c | 439 unsigned qdcount, ancount, nscount, arcount, i; in sldns_wire2str_pkt_scan() local 444 ancount = (unsigned)LDNS_ANCOUNT(*d); in sldns_wire2str_pkt_scan() 448 qdcount = ancount = nscount = arcount = 0; in sldns_wire2str_pkt_scan() 460 for(i=0; i<ancount; i++) { in sldns_wire2str_pkt_scan()
|