/dports/mail/libspf/libspf-1.0.0-p5/src/libspf/ |
H A D | dns.c | 329 if ((ancount = ntohs(hdr->ancount)) <= 0) in DNS_query() 339 r_len, ancount); in DNS_query() 539 j = ancount; in DNS_txt_answer() 749 ancount--; in DNS_mx_answer() 849 ancount--; in DNS_ptr_answer() 859 ancount--; in DNS_ptr_answer() 917 ancount--; in DNS_ptr_answer() 1022 ancount--; in DNS_cname_answer() 1092 ancount = ntohs(hdr->ancount); in DNS_check_client_reverse() 1100 if (ancount > 0) in DNS_check_client_reverse() [all …]
|
/dports/dns/getdns/getdns-1.5.2/src/test/ |
H A D | check_getdns_common.c | 163 uint32_t ancount = 0; in assert_noerror() local 168 ASSERT_RC(getdns_dict_get_int(ex_response->header, "ancount", &ancount), in assert_noerror() 180 uint32_t ancount; in assert_nodata() local 185 ck_assert_msg(ancount == 0, "Expected ancount == 0, got %d", ancount); in assert_nodata() 202 uint32_t ancount; in assert_address_in_answer() local 211 ck_assert_msg(ancount >= 1, "Expected ancount >= 1, got %d", ancount); in assert_address_in_answer() 215 …ck_assert_msg(length == ancount, "Expected \"answer\" length == ancount: %d, got %d", ancount, len… in assert_address_in_answer() 235 ancount, address_records); in assert_address_in_answer() 308 uint32_t ancount; in assert_ptr_in_answer() local 317 ck_assert_msg(ancount >= 1, "Expected ancount >= 1, got %d", ancount); in assert_ptr_in_answer() [all …]
|
/dports/dns/dnsjit/dnsjit-1.2.2/src/test/ |
H A D | test1.gold | 8 ancount: 0 20 ancount: 1 44 ancount: 0 56 ancount: 2 81 ancount: 0 93 ancount: 1 117 ancount: 0 129 ancount: 1 153 ancount: 0 165 ancount: 2 [all …]
|
/dports/dns/walker/walker-3.8/ |
H A D | walker | 142 unless defined($query) and ($query->header->ancount > 0) 151 if (defined($query) and ($query->header->ancount > 0)) { 156 unless defined($query) and ($query->header->ancount > 0); 178 if (defined($query) and ($query->header->ancount > 0) 185 ($query->header->ancount > 0) 195 if (defined($query) and ($query->header->ancount > 0) 202 ($query->header->ancount > 0) 213 unless defined($query) and ($query->header->ancount > 0) 222 unless defined($query) and ($query->header->ancount > 0) 237 unless defined($query) and ($query->header->ancount > 0) [all …]
|
/dports/net/tcpview/tcpview-1.0/ |
H A D | print-domain.c | 236 u_short id, qdcount, ancount, nscount, arcount; local 241 ancount = ntohs(np->ancount); 256 printf(" %d/%d/%d", ancount, nscount, arcount); 257 if (ancount) 275 if (ancount != 1) 276 printf(" [%da]", ancount); 279 if (ancount) 280 printf(" [%da]", ancount);
|
/dports/ports-mgmt/pkg/pkg-1.17.5/libpkg/ |
H A D | dns_utils.c | 165 int len, qdcount, ancount, n, i; in dns_getsrvinfo() local 176 ancount = ntohs(q.hdr.ancount); in dns_getsrvinfo() 190 while (ancount > 0 && p < end) { in dns_getsrvinfo() 191 ancount--; in dns_getsrvinfo() 365 int ancount, i; in dns_getsrvinfo() local 392 ancount = ldns_rr_list_rr_count(srv); in dns_getsrvinfo() 393 res = xcalloc(ancount, sizeof(struct dns_srvinfo)); in dns_getsrvinfo() 395 for (i = 0; i < ancount; i ++) { in dns_getsrvinfo() 420 for (i = 0; i < ancount; i++) { in dns_getsrvinfo() 431 qsort(res, ancount, sizeof(res[0]), srv_final_cmp); in dns_getsrvinfo() [all …]
|
/dports/sysutils/uefi-edk2-bhyve-csm/uefi-edk2-aa8d718/StdLib/BsdSocketLib/ |
H A D | res_update.c | 203 ancount = ntohs(hp->ancount); in res_update() 229 ancount == 0 && in res_update() 264 } else if (rcode == NOERROR && ancount == 1) { in res_update() 299 ancount, nscount, arcount, hp->rcode); in res_update() 370 if (rcode == NOERROR && ancount > 0) { in res_update() 384 for (j = 0; j < ancount; j++) { in res_update() 396 nscount = ancount; in res_update() 401 dname, ancount, nscount, arcount, hp->rcode); in res_update() 405 if (rcode == NOERROR && ancount > 0) { in res_update() 406 arcount = ancount; in res_update() [all …]
|
/dports/devel/zpu-binutils/zpu-toolchain-1.0/toolchain/gcc/newlib/libc/sys/linux/net/ |
H A D | res_update.c | 166 ancount = ntohs(hp->ancount); in res_update() 192 ancount == 0 && in res_update() 262 ancount, nscount, arcount, hp->rcode); in res_update() 333 if (rcode == NOERROR && ancount > 0) { in res_update() 347 for (j = 0; j < ancount; j++) { in res_update() 359 nscount = ancount; in res_update() 364 dname, ancount, nscount, arcount, hp->rcode); in res_update() 368 if (rcode == NOERROR && ancount > 0) { in res_update() 369 arcount = ancount; in res_update() 370 ancount = nscount = 0; in res_update() [all …]
|
/dports/devel/zpu-gcc/zpu-toolchain-1.0/toolchain/gcc/newlib/libc/sys/linux/net/ |
H A D | res_update.c | 166 ancount = ntohs(hp->ancount); in res_update() 192 ancount == 0 && in res_update() 262 ancount, nscount, arcount, hp->rcode); in res_update() 333 if (rcode == NOERROR && ancount > 0) { in res_update() 347 for (j = 0; j < ancount; j++) { in res_update() 359 nscount = ancount; in res_update() 364 dname, ancount, nscount, arcount, hp->rcode); in res_update() 368 if (rcode == NOERROR && ancount > 0) { in res_update() 369 arcount = ancount; in res_update() 370 ancount = nscount = 0; in res_update() [all …]
|
/dports/dns/p5-Net-DNS-ToolKit/Net-DNS-ToolKit-0.48/lib/Net/DNS/ToolKit/ |
H A D | Utilities.pm | 338 $qdcount,$ancount,$nscount,$arcount) 348 $ancount < 1; 354 foreach(0..$ancount -1) { 367 last if $ancount && @$aptr; # end, if there is an answer 410 $qdcount,$ancount,$nscount,$arcount) 420 $ancount < 1 || 427 foreach(0..$ancount -1) { 470 $qdcount,$ancount,$nscount,$arcount) 477 $ancount < 1 ) { 488 foreach(0..$ancount -1) {
|
/dports/lang/zig/zig-0.9.0/lib/libc/wasi/libc-top-half/musl/src/network/ |
H A D | dns_parse.c | 6 int qdcount, ancount; in __dns_parse() local 14 ancount = r[6]*256 + r[7]; in __dns_parse() 15 if (qdcount+ancount > 64) return -1; in __dns_parse() 22 while (ancount--) { in __dns_parse()
|
/dports/lang/zig-devel/zig-0.9.0/lib/libc/wasi/libc-top-half/musl/src/network/ |
H A D | dns_parse.c | 6 int qdcount, ancount; in __dns_parse() local 14 ancount = r[6]*256 + r[7]; in __dns_parse() 15 if (qdcount+ancount > 64) return -1; in __dns_parse() 22 while (ancount--) { in __dns_parse()
|
/dports/devel/wasi-libc/wasi-libc-ad5133410f66b93a2381db5b542aad5e0964db96/libc-top-half/musl/src/network/ |
H A D | dns_parse.c | 6 int qdcount, ancount; in __dns_parse() local 14 ancount = r[6]*256 + r[7]; in __dns_parse() 15 if (qdcount+ancount > 64) return -1; in __dns_parse() 22 while (ancount--) { in __dns_parse()
|
/dports/lang/zig-devel/zig-0.9.0/lib/libc/musl/src/network/ |
H A D | dns_parse.c | 6 int qdcount, ancount; in __dns_parse() local 14 ancount = r[6]*256 + r[7]; in __dns_parse() 15 if (qdcount+ancount > 64) return -1; in __dns_parse() 22 while (ancount--) { in __dns_parse()
|
/dports/lang/zig/zig-0.9.0/lib/libc/musl/src/network/ |
H A D | dns_parse.c | 6 int qdcount, ancount; in __dns_parse() local 14 ancount = r[6]*256 + r[7]; in __dns_parse() 15 if (qdcount+ancount > 64) return -1; in __dns_parse() 22 while (ancount--) { in __dns_parse()
|
/dports/devel/emscripten/emscripten-2.0.3/system/lib/libc/musl/src/network/ |
H A D | dns_parse.c | 5 int qdcount, ancount; in __dns_parse() local 13 ancount = r[6]*256 + r[7]; in __dns_parse() 14 if (qdcount+ancount > 64) return -1; in __dns_parse() 21 while (ancount--) { in __dns_parse()
|
/dports/devel/tinygo/tinygo-0.14.1/lib/wasi-libc/libc-top-half/musl/src/network/ |
H A D | dns_parse.c | 6 int qdcount, ancount; in __dns_parse() local 14 ancount = r[6]*256 + r[7]; in __dns_parse() 15 if (qdcount+ancount > 64) return -1; in __dns_parse() 22 while (ancount--) { in __dns_parse()
|
/dports/dns/doh-proxy/doh-proxy-0.9.2/cargo-crates/libdoh-0.9.2/src/ |
H A D | dns.rs | 30 pub fn ancount(packet: &[u8]) -> u16 { in ancount() function 145 let (ancount, nscount, arcount) = (ancount(packet), nscount(packet), arcount(packet)); in min_ttl() 146 let rrcount = ancount as usize + nscount as usize + arcount as usize; in min_ttl() 196 let (ancount, nscount, arcount) = (ancount(packet), nscount(packet), arcount(packet)); in set_edns_max_payload_size() 200 ancount as usize + nscount as usize, in set_edns_max_payload_size() 240 let (ancount, nscount, arcount) = (ancount(packet), nscount(packet), arcount(packet)); in add_edns_padding() 244 ancount as usize + nscount as usize, in add_edns_padding()
|
/dports/net-mgmt/nfdump/nfdump-1.6.20/bin/ |
H A D | content_dns.c | 118 unsigned ancount :16; /* number of answer entries */ member 165 uint32_t qdcount, ancount; local 181 ancount = ntohs(dns_header->ancount); 182 dbg_printf("DNS Answers: %u\n", ancount); 199 for (i=0; i<ancount && p < eod; i++ ) {
|
/dports/lang/ruby26/ruby-2.6.9/test/resolv/ |
H A D | test_dns.rb | 59 id, word2, qdcount, ancount, nscount, arcount = msg.unpack("nnnnnn") 78 assert_equal(0, ancount) # number of entries in the answer section. 98 ancount = 1 109 msg = [id, word2, qdcount, ancount, nscount, arcount].pack("nnnnnn") 149 id, flags, qdcount, ancount, nscount, arcount = msg.unpack("nnnnnn") 182 ancount = 1 193 msg = [id, word2, qdcount, ancount, nscount, arcount].pack("nnnnnn") 218 ancount = 0 229 msg = [id, word2, qdcount, ancount, nscount, arcount].pack("nnnnnn")
|
/dports/www/osticket/upload/include/pear/Net/DNS2/ |
H A D | Header.php | 98 public $ancount; // 16 bit - resource records in the answer section variable in Net_DNS2_Header 130 $this->ancount = 0; 176 $output .= ";;\t ancount = " . $this->ancount . "\n"; 230 $this->ancount = ord($packet->rdata[++$offset]) << 8 | 265 chr($this->ancount << 8) . chr($this->ancount) .
|
/dports/dns/dnsdist/dnsdist-1.6.1/ |
H A D | dnsparser.cc | 85 dnsheader.ancount=htons(1); in deserialize() 227 d_header.ancount=ntohs(d_header.ancount); in init() 255 if(n < d_header.ancount) in init() 257 else if(n < d_header.ancount + d_header.nscount) in init() 313 if(n < d_header.ancount) { in init() 316 else if(n < d_header.ancount + d_header.nscount) { in init() 320 d_header.arcount = n - d_header.ancount - d_header.nscount; in init() 726 …uint8_t section = n < ntohs(dh.ancount) ? 1 : (n < (ntohs(dh.ancount) + ntohs(dh.nscount)) ? 2 : 3… in editDNSPacketTTL() 821 … == QClass::IN && seenAuthSOA != nullptr && n >= ntohs(dh->ancount) && n < (ntohs(dh->ancount) + n… in getDNSPacketMinTTL() 897 const uint16_t ancount = ntohs(dh->ancount); in getRecordsOfTypeCount() local [all …]
|
/dports/dns/powerdns/pdns-4.5.2/pdns/ |
H A D | dnsparser.cc | 85 dnsheader.ancount=htons(1); in deserialize() 227 d_header.ancount=ntohs(d_header.ancount); in init() 255 if(n < d_header.ancount) in init() 257 else if(n < d_header.ancount + d_header.nscount) in init() 313 if(n < d_header.ancount) { in init() 316 else if(n < d_header.ancount + d_header.nscount) { in init() 320 d_header.arcount = n - d_header.ancount - d_header.nscount; in init() 726 …uint8_t section = n < ntohs(dh.ancount) ? 1 : (n < (ntohs(dh.ancount) + ntohs(dh.nscount)) ? 2 : 3… in editDNSPacketTTL() 821 … == QClass::IN && seenAuthSOA != nullptr && n >= ntohs(dh->ancount) && n < (ntohs(dh->ancount) + n… in getDNSPacketMinTTL() 897 const uint16_t ancount = ntohs(dh->ancount); in getRecordsOfTypeCount() local [all …]
|
/dports/dns/ares/ares-1.1.1/ |
H A D | ares_parse_a_reply.c | 33 unsigned int qdcount, ancount; in ares_parse_a_reply() local 50 ancount = DNS_HEADER_ANCOUNT(abuf); in ares_parse_a_reply() 67 addrs = malloc(ancount * sizeof(struct in_addr)); in ares_parse_a_reply() 73 aliases = malloc((ancount + 1) * sizeof(char *)); in ares_parse_a_reply() 84 for (i = 0; i < ancount; i++) in ares_parse_a_reply()
|
/dports/dns/c-ares/c-ares-1.17.2/src/lib/ |
H A D | ares_parse_soa_reply.c | 45 int qdcount, ancount, qclass; in ares_parse_soa_reply() local 53 ancount = DNS_HEADER_ANCOUNT(abuf); in ares_parse_soa_reply() 57 if (ancount == 0) in ares_parse_soa_reply() 79 if (qclass == T_SOA && ancount > 1) in ares_parse_soa_reply() 83 for (i = 0; i < ancount; i++) in ares_parse_soa_reply()
|