/Zephyr-latest/subsys/net/lib/dns/ |
D | dns_cache.c | 25 int dns_cache_add(struct dns_cache *cache, char const *query, struct dns_addrinfo const *addrinfo, in dns_cache_add() argument 32 if (cache == NULL || query == NULL || addrinfo == NULL || ttl == 0) { in dns_cache_add() 36 if (strlen(query) >= CONFIG_DNS_RESOLVER_MAX_QUERY_LEN) { in dns_cache_add() 39 strlen(query)); in dns_cache_add() 45 NET_DBG("Add \"%s\" with TTL %" PRIu32, query, ttl); in dns_cache_add() 61 NET_DBG("Overwrite \"%s\"", cache->entries[index_to_replace].query); in dns_cache_add() 64 strncpy(cache->entries[index_to_replace].query, query, in dns_cache_add() 75 int dns_cache_remove(struct dns_cache *cache, char const *query) in dns_cache_remove() argument 77 NET_DBG("Remove all entries with query \"%s\"", query); in dns_cache_remove() 78 if (strlen(query) >= CONFIG_DNS_RESOLVER_MAX_QUERY_LEN) { in dns_cache_remove() [all …]
|
D | dns_cache.h | 22 char query[CONFIG_DNS_RESOLVER_MAX_QUERY_LEN]; member 71 int dns_cache_add(struct dns_cache *cache, char const *query, struct dns_addrinfo const *addrinfo, 82 int dns_cache_remove(struct dns_cache *cache, char const *query); 97 int dns_cache_find(struct dns_cache const *cache, const char *query, struct dns_addrinfo *addrinfo,
|
D | llmnr_responder.c | 194 static void add_question(struct net_buf *query, enum dns_rr_type qtype) in add_question() argument 196 char *dot = query->data + DNS_MSG_HEADER_SIZE; in add_question() 214 offset = DNS_MSG_HEADER_SIZE + query->len + 1; in add_question() 215 UNALIGNED_PUT(htons(qtype), (uint16_t *)(query->data+offset)); in add_question() 218 UNALIGNED_PUT(htons(DNS_CLASS_IN), (uint16_t *)(query->data+offset)); in add_question() 221 static int add_answer(struct net_buf *query, uint32_t ttl, in add_answer() argument 224 const uint16_t q_len = query->len + 1 + DNS_QTYPE_LEN + DNS_QCLASS_LEN; in add_answer() 227 memcpy(query->data + offset, query->data + DNS_MSG_HEADER_SIZE, q_len); in add_answer() 230 UNALIGNED_PUT(htonl(ttl), query->data + offset); in add_answer() 233 UNALIGNED_PUT(htons(addr_len), query->data + offset); in add_answer() [all …]
|
D | mdns_responder.c | 202 static void add_answer(struct net_buf *query, enum dns_rr_type qtype, in add_answer() argument 205 char *dot = query->data + DNS_MSG_HEADER_SIZE; in add_answer() 224 query->len += 1; in add_answer() 226 offset = DNS_MSG_HEADER_SIZE + query->len; in add_answer() 227 UNALIGNED_PUT(htons(qtype), (uint16_t *)(query->data+offset)); in add_answer() 232 (uint16_t *)(query->data+offset)); in add_answer() 236 UNALIGNED_PUT(htonl(ttl), query->data + offset); in add_answer() 239 UNALIGNED_PUT(htons(addr_len), query->data + offset); in add_answer() 242 memcpy(query->data + offset, addr, addr_len); in add_answer() 246 struct net_buf *query, in create_answer() argument [all …]
|
D | dns_sd.c | 834 static const char query[] = { "\x09_services\x07_dns-sd\x04_udp\x05local" }; in dns_sd_handle_service_type_enum() local 874 sizeof(query) in dns_sd_handle_service_type_enum() 888 memcpy(&buf[offset], query, sizeof(query)); in dns_sd_handle_service_type_enum() 889 offset += sizeof(query); in dns_sd_handle_service_type_enum() 991 int dns_sd_query_extract(const uint8_t *query, size_t query_size, struct dns_sd_rec *record, in dns_sd_query_extract() argument 1008 __ASSERT(!(query == NULL || label == NULL || size == NULL || n == NULL), in dns_sd_query_extract() 1010 __ASSERT(query + query_size >= query, "query %p + query_size %zu wraps NULL", query, in dns_sd_query_extract() 1026 query += DNS_MSG_HEADER_SIZE; in dns_sd_query_extract() 1035 qsize = *query; in dns_sd_query_extract() 1037 ++query; in dns_sd_query_extract() [all …]
|
D | dns_sd.h | 68 int dns_sd_query_extract(const uint8_t *query, size_t query_size, struct dns_sd_rec *record,
|
D | resolve.c | 648 && pending_query->query == NULL in check_query_active() 687 if (pending_query->query != NULL && pending_query->cb != NULL) { in invoke_query_callback() 711 pending_query->query = NULL; in release_query() 923 ctx->queries[*query_idx].query, &info, ttl); in dns_validate_msg() 1038 ctx->queries[query_idx].query, in dns_read() 1192 if (ctx->queries[i].cb && ctx->queries[i].query) { in dns_resolve_cancel_all() 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() [all …]
|
/Zephyr-latest/tests/net/lib/dns_cache/src/ |
D | main.c | 26 const char *query = "example.com"; in ZTEST() local 28 zassert_ok(dns_cache_add(&test_dns_cache, query, &info_write, TEST_DNS_CACHE_DEFAULT_TTL), in ZTEST() 30 zassert_equal(1, dns_cache_find(&test_dns_cache, query, &info_read, 1)); in ZTEST() 37 const char *query = "example.com"; in ZTEST() local 39 zassert_equal(0, dns_cache_find(&test_dns_cache, query, &info_read, 1)); in ZTEST() 47 const char *query = "example.com"; in ZTEST() local 50 zassert_ok(dns_cache_add(&test_dns_cache, query, &info_write, in ZTEST() 55 dns_cache_find(&test_dns_cache, query, info_read, TEST_DNS_CACHE_SIZE)); in ZTEST() 63 const char *query = "example.com"; in ZTEST() local 66 zassert_ok(dns_cache_add(&test_dns_cache, query, &info_write, in ZTEST() [all …]
|
/Zephyr-latest/tests/kernel/obj_core/obj_core_stats/src/ |
D | main.c | 434 struct sys_memory_stats query; in test_mem_block_query() local 437 status = k_obj_core_stats_query(K_OBJ_CORE(&mem_block), &query, in test_mem_block_query() 438 sizeof(query)); in test_mem_block_query() 442 zassert_equal(query.free_bytes, expected->free_bytes, in test_mem_block_query() 444 str, expected->free_bytes, query.free_bytes); in test_mem_block_query() 446 zassert_equal(query.allocated_bytes, expected->allocated_bytes, in test_mem_block_query() 448 str, expected->allocated_bytes, query.allocated_bytes); in test_mem_block_query() 449 zassert_equal(query.max_allocated_bytes, expected->max_allocated_bytes, in test_mem_block_query() 452 query.max_allocated_bytes); in test_mem_block_query() 464 struct sys_memory_stats query = { in ZTEST() local [all …]
|
/Zephyr-latest/samples/net/dns_resolve/src/ |
D | main.c | 139 static const char *query = "www.zephyrproject.org"; in do_ipv4_lookup() local 143 ret = dns_get_addr_info(query, in do_ipv4_lookup() 147 (void *)query, in do_ipv4_lookup() 266 static const char *query = "zephyr.local"; in do_mdns_ipv4_lookup() local 271 ret = dns_get_addr_info(query, in do_mdns_ipv4_lookup() 275 (void *)query, in do_mdns_ipv4_lookup() 295 static const char *query = "www.zephyrproject.org"; in do_ipv4_lookup() local 299 ret = dns_get_addr_info(query, in do_ipv4_lookup() 303 (void *)query, in do_ipv4_lookup() 337 static const char *query = "www.zephyrproject.org"; in do_ipv6_lookup() local [all …]
|
/Zephyr-latest/doc/_extensions/zephyr/domain/static/js/ |
D | codesample-livesearch.js | 22 function highlightMatches(node, query) { argument 25 const index = text.toLowerCase().indexOf(query); 26 if (index !== -1 && query.length > 0) { 31 highlight.textContent = text.substring(index, index + query.length); 32 const after = document.createTextNode(text.substring(index + query.length)); 41 node.childNodes.forEach((child) => highlightMatches(child, query));
|
/Zephyr-latest/subsys/net/lib/coap/ |
D | coap_link_format.c | 135 const struct coap_option *query) in match_attributes() argument 146 if (query->len != attr_len) { in match_attributes() 150 if (!strncmp((char *) query->value, *attr, attr_len)) { in match_attributes() 159 const struct coap_option *query, in match_queries_resource() argument 178 if (query->len > href_len + 1 && in match_queries_resource() 179 !strncmp((char *) query->value, "href", href_len)) { in match_queries_resource() 181 const char *uri = (char *) query->value + href_len + 1; in match_queries_resource() 182 uint16_t uri_len = query->len - (href_len + 1); in match_queries_resource() 187 return match_attributes(attributes, query); in match_queries_resource() 442 struct coap_option query; in coap_well_known_core_get_len() local [all …]
|
/Zephyr-latest/samples/net/mdns_responder/ |
D | README.rst | 19 - avahi or similar mDNS capable application that is able to query mDNS 43 If the query is successful, then following information is printed: 49 For a IPv6 query, type this: 55 If the query is successful, then following information is printed: 67 If the query is successful, then the following information is printed:
|
/Zephyr-latest/tests/kernel/obj_core/obj_core_stats_api/src/ |
D | main.c | 128 struct k_thread_runtime_stats query; in ZTEST() local 138 status = k_obj_core_stats_query(K_OBJ_CORE(&test_sem), &query, in ZTEST() 143 saved_query = K_OBJ_CORE(test_thread)->type->stats_desc->query; in ZTEST() 144 K_OBJ_CORE(test_thread)->type->stats_desc->query = NULL; in ZTEST() 146 &query, sizeof(query)); in ZTEST() 149 K_OBJ_CORE(test_thread)->type->stats_desc->query = saved_query; in ZTEST()
|
/Zephyr-latest/samples/net/sockets/http_client/ |
D | Kconfig | 9 int "Send a sample HTTP query this many times" 12 Send a sample HTTP query this many times before exiting. A value of
|
/Zephyr-latest/include/zephyr/net/ |
D | dns_resolve.h | 413 const char *query; member 567 const char *query, 613 static inline int dns_get_addr_info(const char *query, in dns_get_addr_info() argument 621 query, in dns_get_addr_info()
|
/Zephyr-latest/subsys/net/lib/shell/ |
D | dns.c | 120 if (!ctx->queries[i].cb || !ctx->queries[i].query) { in print_dns_info() 130 ctx->queries[i].query, in print_dns_info() 135 ctx->queries[i].query, in print_dns_info() 262 SHELL_CMD(query, NULL,
|
/Zephyr-latest/include/zephyr/mgmt/mcumgr/grp/os_mgmt/ |
D | os_mgmt_callbacks.h | 46 struct zcbor_string *query; member
|
/Zephyr-latest/tests/net/lib/dns_packet/src/ |
D | main.c | 1076 const uint8_t *query, in setup_dns_context() argument 1082 ctx->queries[idx].query = query; in setup_dns_context() 1084 ctx->queries[idx].query_hash = crc16_ansi(query, query_len); in setup_dns_context() 1095 static const uint8_t query[] = { in run_dns_malformed_response() local 1118 setup_dns_context(&dns_ctx, 0, dns_id, query, sizeof(query), in run_dns_malformed_response() 1159 static const uint8_t query[] = { in run_dns_valid_cname_response() local 1187 setup_dns_context(&dns_ctx, 0, dns_id, query, sizeof(query), in run_dns_valid_cname_response()
|
/Zephyr-latest/tests/subsys/debug/coredump_backends/src/ |
D | coredump_backend_empty.c | 92 .query = coredump_empty_backend_query,
|
/Zephyr-latest/scripts/ |
D | set_assignees.py | 314 query = f"is:open is:pr no:assignee" 316 query += f" repo:{repo}" 318 issues = gh.search_issues(query=query) 369 pulls = gh.search_issues(query=f'{common_prs}')
|
/Zephyr-latest/tests/net/lib/dns_sd/src/ |
D | main.c | 125 struct dns_query *query = in create_query() local 127 query->type = htons(rr_type); in create_query() 128 query->class_ = htons(DNS_CLASS_IN); in create_query() 764 static const uint8_t query[] = { in ZTEST() local 795 zassert_equal(ARRAY_SIZE(query), in ZTEST() 796 dns_sd_query_extract(query, ARRAY_SIZE(query), &record, label, size, &n), in ZTEST()
|
/Zephyr-latest/doc/connectivity/bluetooth/api/mesh/ |
D | sar_cfg_cli.rst | 14 The model can send messages to query or change the states supported by the SAR Configuration Server 29 An element can send any SAR Configuration Client message at any time to query or change the states
|
/Zephyr-latest/subsys/debug/coredump/ |
D | coredump_backend_intel_adsp_mem_window.c | 116 .query = coredump_mem_window_backend_query,
|
D | coredump_core.c | 249 if (backend_api->query == NULL) { in coredump_query() 252 ret = backend_api->query(query_id, arg); in coredump_query()
|