Lines Matching full:query
4 * An API for applications to do DNS query.
234 /* Query again if we got CNAME */ in dispatcher_cb()
258 NET_DBG("DNS cname query failed %d times", failure); in dispatcher_cb()
542 /* There was query to this server already */ in dns_resolve_init_locked()
632 * @param pending_query the query slot in question
634 * @param reclaim_if_available if the slot is marked in use, but the query has
638 * @return true if and only if the slot can be used for a new query.
648 && pending_query->query == NULL in check_query_active()
672 /* Invoke the callback associated with a query slot, if still relevant.
676 * @param status the query status value
677 * @param info the query result structure
678 * @param pending_query the query slot that will provide the callback
687 if (pending_query->query != NULL && pending_query->cb != NULL) { in invoke_query_callback()
692 /* Release a query slot reserved by get_cb_slot().
696 * @param pending_query the query slot to be released
711 pending_query->query = NULL; in release_query()
765 * can match the DNS query that we sent. When dns_read() is called, in dns_validate_msg()
775 /* We might receive a query while we are waiting for a response, in that in dns_validate_msg()
776 * case we just ignore the query instead of making the resolving fail. in dns_validate_msg()
790 /* For mDNS (when dns_id == 0) the query count is 0 */ in dns_validate_msg()
810 /* mDNS responses to do not have the query part so the in dns_validate_msg()
818 * the proper query. To simplify things, the normal DNS responses in dns_validate_msg()
843 /* Convert the query name to small case so that our in dns_validate_msg()
850 /* Add \0 and query type (A or AAAA) to the hash */ in dns_validate_msg()
923 ctx->queries[*query_idx].query, &info, ttl); in dns_validate_msg()
964 * another query. Number of additional queries is controlled via Kconfig in dns_validate_msg()
1038 ctx->queries[query_idx].query, in dns_read()
1081 /* Convert the query name to small case so that our in dns_write()
1088 /* Add \0 and query type (A or AAAA) to the hash. Note that in dns_write()
1119 /* There was query to this server already */ in dns_write()
1157 NET_DBG("Cannot send query (%d)", -errno); in dns_write()
1192 if (ctx->queries[i].cb && ctx->queries[i].query) { in dns_resolve_cancel_all()
1258 /* If the query string + \0 + query type (A or AAAA) in dns_resolve_cancel_with_name()
1296 * associated with the query. But don't block the system work queue: in query_timeout()
1309 * Reschedule query timeout handler with some delay, so that all in query_timeout()
1320 NET_DBG("Query timeout DNS req %u type %d hash %u", pending_query->id, in query_timeout()
1331 pending_query->query); in query_timeout()
1337 const char *query, in dns_resolve_name() argument
1356 if (!ctx || !query || !cb) { in dns_resolve_name()
1368 ret = net_ipaddr_parse(query, strlen(query), &addr); in dns_resolve_name()
1370 /* The query name was already in numeric form, no in dns_resolve_name()
1417 ret = dns_cache_find(&dns_cache, query, cached_info, ARRAY_SIZE(cached_info)); in dns_resolve_name()
1419 /* The query was cached, no in dns_resolve_name()
1446 ctx->queries[i].query = query; in dns_resolve_name()
1467 CONFIG_DNS_RESOLVER_MAX_QUERY_LEN, ctx->queries[i].query); in dns_resolve_name()
1479 const char *ptr = strrchr(query, '.'); in dns_resolve_name()
1514 * LLMNR multicast address unless it is a mDNS query. in dns_resolve_name()
1533 /* Do one concurrent query only for each name resolve. in dns_resolve_name()
1534 * TODO: Change the i (query index) to do multiple concurrent in dns_resolve_name()
1541 NET_DBG("DNS query failed %d times", failure); in dns_resolve_name()