/Zephyr-latest/subsys/net/lib/dns/ |
D | dns_cache.c | 26 int dns_cache_add(struct dns_cache *cache, char const *query, struct dns_addrinfo const *addrinfo, in dns_cache_add() argument 33 if (cache == NULL || query == NULL || addrinfo == NULL || ttl == 0) { in dns_cache_add() 37 if (strlen(query) >= CONFIG_DNS_RESOLVER_MAX_QUERY_LEN) { in dns_cache_add() 40 strlen(query)); in dns_cache_add() 46 NET_DBG("Add \"%s\" with TTL %" PRIu32, query, ttl); in dns_cache_add() 62 NET_DBG("Overwrite \"%s\"", cache->entries[index_to_replace].query); in dns_cache_add() 65 strncpy(cache->entries[index_to_replace].query, query, in dns_cache_add() 76 int dns_cache_remove(struct dns_cache *cache, char const *query) in dns_cache_remove() argument 78 NET_DBG("Remove all entries with query \"%s\"", query); in dns_cache_remove() 79 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); 98 int dns_cache_find(struct dns_cache const *cache, const char *query, enum dns_query_type type,
|
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 | 278 static void add_answer(struct net_buf *query, enum dns_rr_type qtype, in add_answer() argument 281 char *dot = query->data + DNS_MSG_HEADER_SIZE; in add_answer() 300 query->len += 1; in add_answer() 302 offset = DNS_MSG_HEADER_SIZE + query->len; in add_answer() 303 UNALIGNED_PUT(htons(qtype), (uint16_t *)(query->data+offset)); in add_answer() 308 (uint16_t *)(query->data+offset)); in add_answer() 312 UNALIGNED_PUT(htonl(ttl), query->data + offset); in add_answer() 315 UNALIGNED_PUT(htons(addr_len), query->data + offset); in add_answer() 318 memcpy(query->data + offset, addr, addr_len); in add_answer() 322 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 | 740 && pending_query->query == NULL in check_query_active() 779 if (pending_query->query != NULL && pending_query->cb != NULL) { in invoke_query_callback() 803 pending_query->query = NULL; in release_query() 1068 ctx->queries[*query_idx].query, &info, ttl); in dns_validate_msg() 1185 ctx->queries[query_idx].query, in dns_read() 1339 if (ctx->queries[i].cb && ctx->queries[i].query) { in dns_resolve_cancel_all() 1478 pending_query->query); in query_timeout() 1484 const char *query, in dns_resolve_name_internal() argument 1504 if (!ctx || !query || !cb) { in dns_resolve_name_internal() 1516 ret = net_ipaddr_parse(query, strlen(query), &addr); in dns_resolve_name_internal() [all …]
|
/Zephyr-latest/tests/net/lib/dns_cache/src/ |
D | main.c | 26 const char *query = "example.com"; in ZTEST() local 29 zassert_ok(dns_cache_add(&test_dns_cache, query, &info_write, TEST_DNS_CACHE_DEFAULT_TTL), in ZTEST() 31 zassert_equal(1, dns_cache_find(&test_dns_cache, query, query_type, &info_read, 1)); in ZTEST() 38 const char *query = "example.com"; in ZTEST() local 41 zassert_equal(0, dns_cache_find(&test_dns_cache, query, query_type, &info_read, 1)); in ZTEST() 49 const char *query = "example.com"; in ZTEST() local 53 zassert_ok(dns_cache_add(&test_dns_cache, query, &info_write, in ZTEST() 57 zassert_equal(TEST_DNS_CACHE_SIZE, dns_cache_find(&test_dns_cache, query, query_type, in ZTEST() 66 const char *query = "example.com"; in ZTEST() local 70 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 | 119 const struct coap_option *query) in match_attributes() argument 130 if (query->len != attr_len) { in match_attributes() 134 if (!strncmp((char *) query->value, *attr, attr_len)) { in match_attributes() 143 const struct coap_option *query, in match_queries_resource() argument 162 if (query->len > href_len + 1 && in match_queries_resource() 163 !strncmp((char *) query->value, "href", href_len)) { in match_queries_resource() 165 const char *uri = (char *) query->value + href_len + 1; in match_queries_resource() 166 uint16_t uri_len = query->len - (href_len + 1); in match_queries_resource() 171 return match_attributes(attributes, query); in match_queries_resource() 426 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 | 408 const char *query; member 433 char query[DNS_MAX_NAME_SIZE + 1]; member 585 const char *query, 631 static inline int dns_get_addr_info(const char *query, in dns_get_addr_info() argument 639 query, in dns_get_addr_info()
|
/Zephyr-latest/include/zephyr/mgmt/mcumgr/grp/os_mgmt/ |
D | os_mgmt_callbacks.h | 46 struct zcbor_string *query; member
|
/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/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/application_development/software_bill_of_materials/ |
D | PreLoad.cmake | 5 # We need to create the CMake file API query before the configure step
|
/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 | 126 struct dns_query *query = in create_query() local 128 query->type = htons(rr_type); in create_query() 129 query->class_ = htons(DNS_CLASS_IN); in create_query() 765 static const uint8_t query[] = { in ZTEST() local 796 zassert_equal(ARRAY_SIZE(query), in ZTEST() 797 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,
|