Home
last modified time | relevance | path

Searched refs:query (Results 1 – 25 of 27) sorted by relevance

12

/subsys/net/lib/dns/
A Ddns_cache.c40 strlen(query)); in dns_cache_add()
46 NET_DBG("Add \"%s\" with TTL %" PRIu32, query, ttl); in dns_cache_add()
65 strncpy(cache->entries[index_to_replace].query, query, in dns_cache_add()
78 if (cache == NULL || query == NULL) { in dns_cache_remove()
86 strlen(query)); in dns_cache_remove()
95 if (cache->entries[i].in_use && strcmp(cache->entries[i].query, query) == 0) { in dns_cache_remove()
111 NET_DBG("Find \"%s\"", query); in dns_cache_find()
125 strlen(query)); in dns_cache_find()
137 if (strcmp(cache->entries[i].query, query) != 0) { in dns_cache_find()
149 NET_DBG("Found \"%s\"", query); in dns_cache_find()
[all …]
A Dllmnr_responder.c226 memcpy(query->data + offset, query->data + DNS_MSG_HEADER_SIZE, q_len); in add_answer()
235 memcpy(query->data + offset, addr, addr_len); in add_answer()
241 struct net_buf *query, in create_answer() argument
248 if ((net_buf_max_len(query) - query->len) < (DNS_MSG_HEADER_SIZE + in create_answer()
251 addr_len + query->len)) { in create_answer()
255 memmove(query->data + DNS_MSG_HEADER_SIZE, query->data, query->len); in create_answer()
257 setup_dns_hdr(query->data, 1, dns_id); in create_answer()
259 add_question(query, qtype); in create_answer()
261 query->len = add_answer(query, LLMNR_TTL, addr_len, addr); in create_answer()
303 struct net_buf *query, in create_ipv4_answer() argument
[all …]
A Ddns_cache.h22 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,
A Dmdns_responder.c296 query->len += 1; in add_answer()
318 struct net_buf *query, in create_answer() argument
325 if ((net_buf_max_len(query) - query->len) < (DNS_MSG_HEADER_SIZE + in create_answer()
332 memmove(query->data + DNS_MSG_HEADER_SIZE, query->data, query->len); in create_answer()
334 setup_dns_hdr(query->data, 1); in create_answer()
338 query->len += DNS_MSG_HEADER_SIZE + in create_answer()
349 struct net_buf *query, in send_response() argument
409 ret = zsock_sendto(sock, query->data, query->len, 0, in send_response()
801 ud->query); in probe_cb()
871 snprintk(ctx->probe_data.query, sizeof(ctx->probe_data.query), in send_probe()
[all …]
A Ddns_sd.c839 static const char query[] = { "\x09_services\x07_dns-sd\x04_udp\x05local" }; in dns_sd_handle_service_type_enum() local
879 sizeof(query) in dns_sd_handle_service_type_enum()
893 memcpy(&buf[offset], query, sizeof(query)); in dns_sd_handle_service_type_enum()
894 offset += sizeof(query); in dns_sd_handle_service_type_enum()
1013 __ASSERT(!(query == NULL || label == NULL || size == NULL || n == NULL), in dns_sd_query_extract()
1015 __ASSERT(query + query_size >= query, "query %p + query_size %zu wraps NULL", query, in dns_sd_query_extract()
1031 query += DNS_MSG_HEADER_SIZE; in dns_sd_query_extract()
1040 qsize = *query; in dns_sd_query_extract()
1042 ++query; in dns_sd_query_extract()
1063 memcpy(label[i], query, qsize); in dns_sd_query_extract()
[all …]
A Dresolve.c940 && pending_query->query == NULL in check_query_active()
1003 pending_query->query = NULL; in release_query()
1431 ctx->queries[query_idx].query, in dns_read()
1724 pending_query->query); in query_timeout()
1730 const char *query, in dns_resolve_name_internal() argument
1750 if (!ctx || !query || !cb) { in dns_resolve_name_internal()
1762 ret = net_ipaddr_parse(query, strlen(query), &addr); in dns_resolve_name_internal()
1833 strcmp(query, "localhost") == 0) { in dns_resolve_name_internal()
1880 if (strcmp(hostname, query) == 0) { in dns_resolve_name_internal()
1947 ctx->queries[i].query = query; in dns_resolve_name_internal()
[all …]
A Ddns_sd.h68 int dns_sd_query_extract(const uint8_t *query, size_t query_size, struct dns_sd_rec *record,
A DKconfig73 int "Max length of a DNS query"
77 Max length of a DNS query that should be looked up including the
78 trailing 0. So e.g. "example.com" would have a query len of 12.
87 DNS server. For example if we query a DNS-SD service, then this value should
/subsys/net/lib/coap/
A Dcoap_link_format.c119 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 …]
/subsys/net/lib/shell/
A Ddns.c135 if (!ctx->queries[i].cb || !ctx->queries[i].query) { in print_dns_info()
145 ctx->queries[i].query, in print_dns_info()
150 ctx->queries[i].query, in print_dns_info()
155 ctx->queries[i].query, in print_dns_info()
161 ctx->queries[i].query, ctx->queries[i].id, in print_dns_info()
370 SHELL_CMD(query, NULL,
/subsys/net/lib/dhcpv6/
A DKconfig47 2001:db8::1:53 when sending DNS query to the Wi-Fi interface and DNS
48 server 2001:db8::2:53 when sending DNS query to the Ethernet
/subsys/mgmt/mcumgr/grp/os_mgmt/src/
A Dos_mgmt.c510 struct zcbor_string query = { 0 }; in os_mgmt_bootloader_info() local
522 .query = &query, in os_mgmt_bootloader_info()
528 ZCBOR_MAP_DECODE_KEY_DECODER("query", zcbor_tstr_decode, &query), in os_mgmt_bootloader_info()
559 "query") && (sizeof("mode") - 1) == query.len && in os_mgmt_bootloader_info()
560 memcmp("mode", query.value, query.len) == 0) { in os_mgmt_bootloader_info()
/subsys/debug/coredump/
A Dcoredump_core.c284 if (backend_api->query == NULL) { in coredump_query()
287 ret = backend_api->query(query_id, arg); in coredump_query()
A Dcoredump_backend_intel_adsp_mem_window.c117 .query = coredump_mem_window_backend_query,
A Dcoredump_backend_logging.c126 .query = coredump_logging_backend_query,
A Dcoredump_backend_in_memory.c192 .query = coredump_in_memory_backend_query,
A Dcoredump_backend_flash_partition.c631 .query = coredump_flash_backend_query,
/subsys/net/l2/ethernet/gptp/
A Dgptp_messages.c354 struct gptp_hdr *hdr, *query; in gptp_prepare_pdelay_resp() local
371 query = GPTP_HDR(req); in gptp_prepare_pdelay_resp()
377 hdr->sequence_id = query->sequence_id; in gptp_prepare_pdelay_resp()
378 hdr->domain_number = query->domain_number; in gptp_prepare_pdelay_resp()
379 hdr->correction_field = query->correction_field; in gptp_prepare_pdelay_resp()
403 &query->port_id, sizeof(struct gptp_port_identity)); in gptp_prepare_pdelay_resp()
/subsys/mgmt/osdp/
A DKconfig.cp41 The Control Panel must query the Peripheral Device periodically to
/subsys/net/l2/ethernet/
A Darp.c734 struct net_arp_hdr *hdr, *query; in arp_prepare_reply() local
746 query = NET_ARP_HDR(req); in arp_prepare_reply()
763 net_ipv4_addr_copy_raw(hdr->dst_ipaddr, query->src_ipaddr); in arp_prepare_reply()
764 net_ipv4_addr_copy_raw(hdr->src_ipaddr, query->dst_ipaddr); in arp_prepare_reply()
/subsys/net/lib/sockets/
A DKconfig49 query is considered timeout. Minimum timeout is 1 second and
63 which DNS query is re-tried. If there is no reply, the backoff
64 interval is doubled and query is retried.
68 within 5 secs, a 2nd query is done with timeout set to 10 sec (5 * 2).
69 If no reply is received, a 3rd query is done after 15 sec (5 + 5 * 2),
/subsys/net/lib/dhcpv4/
A DKconfig112 192.0.2.53 when sending DNS query to the Wi-Fi interface and DNS
113 server 198.51.100.53 when sending DNS query to the Ethernet
/subsys/net/ip/
A Dnet_private.h166 const char *query,
/subsys/fs/
A DKconfig.fatfs219 to query device for sector size on mount.
233 query every connected device for sector size.
/subsys/mgmt/mcumgr/grp/os_mgmt/
A DKconfig207 Allows to query MCUmgr about bootloader used by device and various bootloader

Completed in 43 milliseconds

12