| /netbsd-src/external/bsd/nsd/dist/ |
| H A D | axfr.c | 22 query_axfr(struct nsd *nsd, struct query *query, int wstats) in query_axfr() argument 30 if (query->axfr_is_done) in query_axfr() 33 if (query->maxlen > AXFR_MAX_MESSAGE_LEN) in query_axfr() 34 query->maxlen = AXFR_MAX_MESSAGE_LEN; in query_axfr() 36 assert(!query_overflow(query)); in query_axfr() 38 query->tsig_prepare_it = 0; in query_axfr() 39 query->tsig_update_it = 1; in query_axfr() 40 if(query->tsig_sign_it) { in query_axfr() 42 query->tsig_prepare_it = 1; in query_axfr() 43 query->tsig_sign_it = 0; in query_axfr() [all …]
|
| H A D | rrl.c | 150 static uint64_t rrl_get_source(query_type* query, uint16_t* c2) in rrl_get_source() argument 156 if( ((struct sockaddr_in*)&query->client_addr)->sin_family == AF_INET) { in rrl_get_source() 158 return ((struct sockaddr_in*)&query->client_addr)-> in rrl_get_source() 163 memmove(&s, &((struct sockaddr_in6*)&query->client_addr)->sin6_addr, in rrl_get_source() 169 return query->client_addr.sin_addr.s_addr & htonl(0xffffffff << (32-rrl_ipv4_prefixlen)); in rrl_get_source() 242 static uint16_t rrl_classify(query_type* query, const uint8_t** d, in rrl_classify() argument 245 if(RCODE(query->packet) == RCODE_NXDOMAIN) { in rrl_classify() 246 if(query->zone && query->zone->apex) { in rrl_classify() 247 *d = dname_name(domain_dname(query->zone->apex)); in rrl_classify() 248 *d_len = domain_dname(query->zone->apex)->name_size; in rrl_classify() [all …]
|
| H A D | query.c | 46 static int answer_needs_ns(struct query *query); 48 static int add_rrset(struct query *query, 55 struct query *q, 63 static void answer_lookup_zone(struct nsd *nsd, struct query *q, 70 query_put_dname_offset(struct query *q, domain_type *domain, uint16_t offset) in query_put_dname_offset() 87 query_clear_dname_offsets(struct query *q, size_t max_offset) in query_clear_dname_offsets() 99 query_clear_compression_tables(struct query *q) in query_clear_compression_tables() 111 query_add_compression_domain(struct query *q, domain_type *domain, uint16_t offset) in query_add_compression_domain() 129 query_error (struct query *q, nsd_rc_type rcode) in query_error() 167 query_formerr (struct query *query, nsd_type* nsd) in query_formerr() argument [all …]
|
| H A D | query.h | 31 typedef struct query query_type; 32 struct query { struct 159 static inline int query_overflow(struct query *q); argument 165 void query_put_dname_offset(struct query *query, 174 uint16_t query_get_dname_offset(struct query *query, domain_type *domain) in query_get_dname_offset() argument 176 return query->compressed_dname_offsets[domain->number]; in query_get_dname_offset() 185 void query_clear_dname_offsets(struct query *query, size_t max_offset); 190 void query_clear_compression_tables(struct query *query); 196 void query_add_compression_domain(struct query *query, 213 void query_reset(query_type *query, size_t maxlen, int is_tcp);
|
| H A D | ixfr.c | 263 static int ixfr_write_rr_pkt(struct query* query, struct buffer* packet, in ixfr_write_rr_pkt() argument 276 size_t oldmaxlen = query->maxlen; in ixfr_write_rr_pkt() 278 query->maxlen = (query->tcp?TCP_MAX_MESSAGE_LEN:UDP_MAX_MESSAGE_LEN); in ixfr_write_rr_pkt() 279 if(query_overflow(query)) { in ixfr_write_rr_pkt() 280 query->maxlen = oldmaxlen; in ixfr_write_rr_pkt() 283 query->maxlen = oldmaxlen; in ixfr_write_rr_pkt() 286 || query_overflow(query)) { in ixfr_write_rr_pkt() 417 size_t oldmaxlen = query->maxlen; in ixfr_write_rr_pkt() 418 query->maxlen = (query->tcp?TCP_MAX_MESSAGE_LEN:UDP_MAX_MESSAGE_LEN); in ixfr_write_rr_pkt() 419 if(query_overflow(query)) { in ixfr_write_rr_pkt() [all …]
|
| H A D | nsec3.c | 861 nsec3_add_rrset(struct query* query, struct answer* answer, in nsec3_add_rrset() argument 865 rrset_type* rrset = domain_find_rrset(domain, query->zone, TYPE_NSEC3); in nsec3_add_rrset() 873 nsec3_add_nonexist_proof(struct query* query, struct answer* answer, in nsec3_add_nonexist_proof() argument 882 to_prove = dname_partial_copy(query->region, qname, in nsec3_add_nonexist_proof() 885 nsec3_hash_and_store(query->zone, to_prove, hash); in nsec3_add_nonexist_proof() 886 if(nsec3_find_cover(query->zone, hash, sizeof(hash), &cover)) in nsec3_add_nonexist_proof() 894 walk = query->zone->apex; in nsec3_add_nonexist_proof() 917 RCODE_SET(query->packet, RCODE_SERVFAIL); in nsec3_add_nonexist_proof() 920 ASSIGN_EDE_CODE_AND_STRING_LITERAL(query->edns.ede, in nsec3_add_nonexist_proof() 927 nsec3_add_rrset(query, answer, AUTHORITY_SECTION, cover); in nsec3_add_nonexist_proof() [all …]
|
| H A D | server.c | 203 static struct query *queries[NUM_RECV_PER_SELECT]; 235 query_type* query; member 2910 server_process_query(struct nsd *nsd, struct query *query, uint32_t *now_p) in server_process_query() argument 2912 return query_process(query, nsd, now_p); in server_process_query() 2916 server_process_query_udp(struct nsd *nsd, struct query *query, uint32_t *now_p) in server_process_query_udp() argument 2919 if(query_process(query, nsd, now_p) != QUERY_DISCARDED) { in server_process_query_udp() 2920 if(query->edns.cookie_status != COOKIE_VALID in server_process_query_udp() 2921 && query->edns.cookie_status != COOKIE_VALID_REUSE in server_process_query_udp() 2922 && rrl_process_query(query)) in server_process_query_udp() 2923 return rrl_slip(query); in server_process_query_udp() [all …]
|
| H A D | nsec3.h | 19 struct query; 47 void nsec3_answer_wildcard(struct query* query, struct answer* answer, 54 void nsec3_answer_nodata(struct query *query, struct answer *answer, 60 void nsec3_answer_delegation(struct query *query, struct answer *answer); 66 void nsec3_answer_authoritative(struct domain** match, struct query *query,
|
| /netbsd-src/external/mpl/bind/dist/bin/tools/ |
| H A D | mdig.c | 127 struct query { 151 ISC_LINK(struct query) link; 153 static struct query default_query; 154 static ISC_LIST(struct query) queries; 195 dns_message_t *query = NULL, *response = NULL; in recvresponse() 203 query = dns_request_getarg(request); in recvresponse() 539 if (query != NULL) { in recvresponse() 540 dns_message_detach(&query); in recvresponse() 579 sendquery(struct query *query) { 125 struct query { global() struct 149 udpretriesquery global() argument 194 dns_message_t *query = NULL, *response = NULL; recvresponse() local 581 sendquery(struct query * query,isc_task_t * task) sendquery() argument 769 struct query *query = (struct query *)event->ev_arg; sendqueries() local 938 newopts(struct query * query) newopts() argument 952 save_opt(struct query * query,char * code,char * value) save_opt() argument 1132 plus_option(char * option,struct query * query,bool global) plus_option() argument 1658 dash_option(const char * option,char * next,struct query * query,bool global,bool * setname) dash_option() argument 1814 struct query *query; clone_default_query() local 1897 struct query *query = NULL; parse_args() local 2095 struct query *query = NULL; main() local [all...] |
| /netbsd-src/external/bsd/unbound/dist/testdata/stat_values.tdir/ |
| H A D | stat_values.test | 184 echo "[ Check initial stats based on first query. ]" 189 num.query.type.A=1 190 num.query.class.IN=1 191 num.query.opcode.QUERY=1 192 num.query.flags.RD=1 193 num.query.flags.AD=1 194 num.query.edns.present=1 195 num.query.udpout=1 227 num.query.class.IN=1 228 num.query.edns.present=1 [all …]
|
| /netbsd-src/crypto/external/bsd/heimdal/dist/lib/hx509/ |
| H A D | test_query.in | 62 ${hxtool} query \ 68 ${hxtool} query \ 74 ${hxtool} query \ 79 ${hxtool} query \ 84 ${hxtool} query \ 89 ${hxtool} query \ 95 ${hxtool} query \ 101 ${hxtool} query \ 108 ${hxtool} query \ 115 ${hxtool} query \ [all …]
|
| /netbsd-src/external/mpl/bind/dist/bin/tests/system/timeouts/ |
| H A D | tests_tcp_timeouts.py | 25 import dns.query 64 dns.query.send_tcp(sock, msg, timeout()) 65 dns.query.receive_tcp(sock, timeout()) 80 dns.query.send_tcp(sock, msg, timeout()) 81 dns.query.receive_tcp(sock, timeout()) 85 dns.query.send_tcp(sock, msg, timeout()) 86 dns.query.receive_tcp(sock, timeout()) 92 dns.query.send_tcp(sock, msg, timeout()) 93 dns.query.receive_tcp(sock, timeout()) 111 dns.query [all...] |
| /netbsd-src/sys/kern/ |
| H A D | subr_thmap.c | 361 hashval_init(thmap_query_t *query, const uint8_t seed[static HASHVAL_SEEDLEN], in hashval_init() argument 366 query->seed = seed; in hashval_init() 367 query->rslot = ((hashval >> ROOT_MSBITS) ^ len) & ROOT_MASK; in hashval_init() 368 query->level = 0; in hashval_init() 369 query->hashval = hashval; in hashval_init() 370 query->hashidx = 0; in hashval_init() 378 hashval_getslot(thmap_query_t *query, const void * restrict key, size_t len) in hashval_getslot() argument 380 const unsigned offset = query->level * LEVEL_BITS; in hashval_getslot() 384 if (query->hashidx != i) { in hashval_getslot() 386 query->hashval = hash(query->seed, key, len, i); in hashval_getslot() [all …]
|
| /netbsd-src/external/mpl/bind/dist/bin/tests/system/tcp/ |
| H A D | tests_tcp.py | 24 import dns.query 53 dns.query.send_tcp(sock, msg, timeout()) 54 dns.query.receive_tcp(sock, timeout()) 66 dns.query.send_tcp(sock, msg, timeout()) 67 dns.query.receive_tcp(sock, timeout()) 75 dns.query.send_tcp(sock, msg, timeout()) 76 dns.query.receive_tcp(sock, timeout()) 81 # Send DNS response instead of DNS query, this should cause 85 dns.query.send_tcp(sock, rmsg, timeout()) 89 dns.query [all...] |
| /netbsd-src/external/mpl/bind/dist/contrib/dlz/modules/mysqldyn/ |
| H A D | dlz_mysqldyn_mod.c | |
| /netbsd-src/external/bsd/unbound/dist/testdata/proxy_protocol.tdir/ |
| H A D | proxy_protocol.test.scenario | 52 query=$4 53 echo -n "> query $query to $server" 73 do_streamtcp $prot -f $server@$port $client $query 78 #query=$1 80 if grep "$query" outfile | grep "$answer"; then 112 query="two.example.net." 115 send_query "$server" "$client" "$prot" "$query" 124 query="one.example.net." 127 send_query "$server" "$client" "$prot" "$query" 136 query="one.example.net." [all …]
|
| /netbsd-src/usr.sbin/makemandb/ |
| H A D | apropos.c | 158 char *query = NULL; // the user query in main() local 208 query = remove_stopwords(lower(str)); in main() 214 if (query == NULL) in main() 215 query = str; in main() 238 args.search_str = query; in main() 252 "collapse;\" border=\"1\">\n", query); in main() 260 free(query); in main() 330 remove_stopwords(const char *query) in remove_stopwords() argument 336 output = buf = emalloc(strlen(query) + 1); in remove_stopwords() 338 for (; query[0] != '\0'; query = next) { in remove_stopwords() [all …]
|
| /netbsd-src/external/mpl/dhcp/bind/dist/lib/dns/ |
| H A D | resolver.c | 112 "resquery %p (fctx %p(%s)): %s", query, query->fctx, \ 113 query->fctx->info, (m)) 230 typedef struct query { struct 244 ISC_LINK(struct query) link; argument 266 #define VALID_QUERY(query) ISC_MAGIC_VALID(query, QUERY_MAGIC) argument 639 resquery_send(resquery_t *query); 742 resquery_t *query; member 806 rctx_respinit(isc_task_t *task, dns_dispatchevent_t *devent, resquery_t *query, 1232 resquery_t *query; in resquery_destroy() local 1237 query = *queryp; in resquery_destroy() [all …]
|
| /netbsd-src/lib/libc/locale/ |
| H A D | generic_lc_all.c | 91 strlcpy(&locale->query[0], s, sizeof(locale->query)); in _generic_LC_ALL_setlocale() 105 strlcat(&locale->query[0], "/", in _generic_LC_ALL_setlocale() 106 sizeof(locale->query)); in _generic_LC_ALL_setlocale() 107 strlcat(&locale->query[0], s, in _generic_LC_ALL_setlocale() 108 sizeof(locale->query)); in _generic_LC_ALL_setlocale() 111 strlcat(&locale->query[0], "/", sizeof(locale->query)); in _generic_LC_ALL_setlocale() 112 strlcat(&locale->query[0], t, sizeof(locale->query)); in _generic_LC_ALL_setlocale() 116 return (const char *)&locale->query[0]; in _generic_LC_ALL_setlocale()
|
| /netbsd-src/external/mpl/bind/dist/lib/ns/ |
| H A D | query.c | 1 /* $NetBSD: query.c,v 1.23 2025/01/26 16:25:45 christos Exp $ */ 101 (((c)->query.attributes & NS_QUERYATTR_PARTIALANSWER) != 0) 103 #define USECACHE(c) (((c)->query.attributes & NS_QUERYATTR_CACHEOK) != 0) 105 #define RECURSIONOK(c) (((c)->query.attributes & NS_QUERYATTR_RECURSIONOK) != 0) 107 #define RECURSING(c) (((c)->query.attributes & NS_QUERYATTR_RECURSING) != 0) 110 (((c)->query.attributes & NS_QUERYATTR_WANTRECURSION) != 0) 127 #define NOAUTHORITY(c) (((c)->query.attributes & NS_QUERYATTR_NOAUTHORITY) != 0) 130 (((c)->query.attributes & NS_QUERYATTR_NOADDITIONAL) != 0) 132 #define SECURE(c) (((c)->query.attributes & NS_QUERYATTR_SECURE) != 0) 134 #define DNS64(c) (((c)->query [all...] |
| /netbsd-src/external/mpl/bind/dist/lib/dns/ |
| H A D | resolver.c | 118 "resquery %p (fctx %p(%s)): %s", query, query->fctx, \ 119 query->fctx->info, (m)) 172 * The maximum time we will wait for a single query. 188 * A minumum sane timeout value for the whole query to live when e.g. talking to 192 * values of 'resolver-query-timeout' less than or equal to 300 are treated as 200 * The default time in seconds for the whole query to live. 201 * We want to allow an individual query time to complete / timeout. 207 /* The maximum time in seconds for the whole query to live. */ 253 * disable EDNS0 on the query 270 typedef struct query { global() struct 283 dispentryquery global() argument 301 VALID_QUERY(query) global() argument 778 resquery_t *query; global() member 1198 resquery_destroy(resquery_t * query) resquery_destroy() argument 1251 resquery_t *query = NULL; resquery_detach() local 1269 update_edns_stats(resquery_t * query) update_edns_stats() argument 1315 resquery_t *query = NULL; fctx_cancelquery() local 1555 resquery_t *query = NULL, *next_query = NULL; fctx_cancelqueries() local 1901 resquery_t *query = (resquery_t *)arg; resquery_senddone() local 2043 resquery_timeout(resquery_t * query) resquery_timeout() argument 2107 resquery_t *query = NULL; fctx_query() local 2406 add_serveraddr(uint8_t * buf,const size_t bufsize,const resquery_t * query) add_serveraddr() argument 2418 compute_cc(const resquery_t * query,uint8_t * cookie,const size_t len) compute_cc() argument 2457 resquery_send(resquery_t * query) resquery_send() argument 2922 resquery_t *query = (resquery_t *)arg; resquery_connected() local 7584 log_nsid(isc_buffer_t * opt,size_t nsid_len,resquery_t * query,int level,isc_mem_t * mctx) log_nsid() argument 7671 resquery_t *query = (resquery_t *)arg; resquery_response() local 8081 rctx_respinit(resquery_t * query,fetchctx_t * fctx,isc_result_t result,isc_region_t * region,respctx_t * rctx) rctx_respinit() argument 8245 resquery_t *query = rctx->query; rctx_parse() local 8329 resquery_t *query = rctx->query; rctx_opt() local 8415 resquery_t *query = rctx->query; rctx_edns() local 8494 resquery_t *query = rctx->query; rctx_answer() local 9908 resquery_t *query = rctx->query; rctx_done() local 10047 resquery_t *query = rctx->query; rctx_badserver() local 10168 resquery_t *query = rctx->query; rctx_lameserver() local [all...] |
| /netbsd-src/external/ibm-public/postfix/dist/src/global/ |
| H A D | dict_sqlite.c | 86 char *query; /* db_common_expand() query */ member 121 myfree(dict_sqlite->query); in dict_sqlite_close() 138 static VSTRING *query; in dict_sqlite_lookup() local 193 INIT_VSTR(query, 10); in dict_sqlite_lookup() 195 if (!db_common_expand(dict_sqlite->ctx, dict_sqlite->query, in dict_sqlite_lookup() 196 name, 0, query, dict_sqlite_quote)) in dict_sqlite_lookup() 201 myname, dict_sqlite->parser->name, vstring_str(query)); in dict_sqlite_lookup() 203 if (sqlite3_prepare_v2(dict_sqlite->db, vstring_str(query), -1, in dict_sqlite_lookup() 234 vstring_str(query), sqlite3_errmsg(dict_sqlite->db)); in dict_sqlite_lookup() 246 vstring_str(query), sqlite3_errmsg(dict_sqlite->db)); in dict_sqlite_lookup() [all …]
|
| /netbsd-src/external/bsd/unbound/dist/testdata/ |
| H A D | iter_nxns_cached.rpl | 10 do-not-query-localhost: no 196 a.query. IN A 205 a.query. IN A 214 a.query. IN A 221 a.query. IN A 228 a.query. IN A 235 a.query. IN A 242 a.query. IN A 249 a.query. IN A 256 a.query. IN A [all …]
|
| /netbsd-src/external/bsd/unbound/dist/contrib/ |
| H A D | unbound_munin_ | 86 unbound_munin_histogram - histogram of query resolving times 300 tp=`echo $nm | sed -e s/num.query.type.//` 312 tp=`echo $nm | sed -e s/num.query.class.//` 324 tp=`echo $nm | sed -e s/num.query.opcode.//` 455 total.num.cachehits total.num.prefetch num.query.tcp \ 456 num.query.tcpout num.query.udpout num.query.tls num.query.tls.resume \ 457 num.query.ipv6 unwanted.queries \ 501 …query.flags.QR num.query.flags.AA num.query.flags.TC num.query.flags.RD num.query.flags.RA num.que…
|
| /netbsd-src/external/bsd/kyua-cli/dist/cli/ |
| H A D | cmd_db_exec_test.cpp | 67 sqlite::statement query = db.create_statement("SELECT * FROM test"); in do_format_cell_test() local 68 ATF_REQUIRE(query.step()); in do_format_cell_test() 69 ATF_REQUIRE_EQ(exp_value, cli::format_cell(query, 0)); in do_format_cell_test() 70 ATF_REQUIRE(!query.step()); in do_format_cell_test() 124 sqlite::statement query = db.create_statement( in ATF_TEST_CASE_BODY() local 126 ATF_REQUIRE_EQ("c1,c2,c3bis", cli::format_headers(query)); in ATF_TEST_CASE_BODY() 146 sqlite::statement query = db.create_statement("SELECT * FROM test"); in ATF_TEST_CASE_BODY() local 147 query.step(); in ATF_TEST_CASE_BODY() 150 cli::format_row(query)); in ATF_TEST_CASE_BODY()
|