/Zephyr-Core-2.7.6/samples/net/dns_resolve/src/ |
D | main.c | 137 static const char *query = "www.zephyrproject.org"; in do_ipv4_lookup() local 141 ret = dns_get_addr_info(query, in do_ipv4_lookup() 145 (void *)query, in do_ipv4_lookup() 223 static const char *query = "zephyr.local"; in do_mdns_ipv4_lookup() local 228 ret = dns_get_addr_info(query, in do_mdns_ipv4_lookup() 232 (void *)query, in do_mdns_ipv4_lookup() 252 static const char *query = "www.zephyrproject.org"; in do_ipv4_lookup() local 256 ret = dns_get_addr_info(query, in do_ipv4_lookup() 260 (void *)query, in do_ipv4_lookup() 294 static const char *query = "www.zephyrproject.org"; in do_ipv6_lookup() local [all …]
|
/Zephyr-Core-2.7.6/subsys/net/lib/dns/ |
D | llmnr_responder.c | 172 static void add_question(struct net_buf *query, enum dns_rr_type qtype) in add_question() argument 174 char *dot = query->data + DNS_MSG_HEADER_SIZE; in add_question() 192 offset = DNS_MSG_HEADER_SIZE + query->len + 1; in add_question() 193 UNALIGNED_PUT(htons(qtype), (uint16_t *)(query->data+offset)); in add_question() 196 UNALIGNED_PUT(htons(DNS_CLASS_IN), (uint16_t *)(query->data+offset)); in add_question() 199 static int add_answer(struct net_buf *query, uint32_t ttl, in add_answer() argument 202 const uint16_t q_len = query->len + 1 + DNS_QTYPE_LEN + DNS_QCLASS_LEN; in add_answer() 205 memcpy(query->data + offset, query->data + DNS_MSG_HEADER_SIZE, q_len); in add_answer() 208 UNALIGNED_PUT(htonl(ttl), query->data + offset); in add_answer() 211 UNALIGNED_PUT(htons(addr_len), query->data + offset); in add_answer() [all …]
|
D | mdns_responder.c | 164 static void add_answer(struct net_buf *query, enum dns_rr_type qtype, in add_answer() argument 167 char *dot = query->data + DNS_MSG_HEADER_SIZE; in add_answer() 186 query->len += 1; in add_answer() 188 offset = DNS_MSG_HEADER_SIZE + query->len; in add_answer() 189 UNALIGNED_PUT(htons(qtype), (uint16_t *)(query->data+offset)); in add_answer() 194 (uint16_t *)(query->data+offset)); in add_answer() 198 UNALIGNED_PUT(htonl(ttl), query->data + offset); in add_answer() 201 UNALIGNED_PUT(htons(addr_len), query->data + offset); in add_answer() 204 memcpy(query->data + offset, addr, addr_len); in add_answer() 208 struct net_buf *query, in create_answer() argument [all …]
|
D | dns_sd.h | 61 int dns_sd_query_extract(const uint8_t *query, size_t query_size, struct dns_sd_rec *record, 90 int dns_sd_extract_service_proto_domain(const uint8_t *query,
|
D | dns_sd.c | 821 static const char query[] = { "\x09_services\x07_dns-sd\x04_udp\x05local" }; in dns_sd_handle_service_type_enum() local 860 sizeof(query) in dns_sd_handle_service_type_enum() 874 memcpy(&buf[offset], query, sizeof(query)); in dns_sd_handle_service_type_enum() 875 offset += sizeof(query); in dns_sd_handle_service_type_enum() 977 int dns_sd_query_extract(const uint8_t *query, size_t query_size, struct dns_sd_rec *record, in dns_sd_query_extract() argument 994 __ASSERT(!(query == NULL || label == NULL || size == NULL || n == NULL), in dns_sd_query_extract() 996 __ASSERT(query + query_size >= query, "query %p + query_size %zu wraps NULL", query, in dns_sd_query_extract() 1012 query += DNS_MSG_HEADER_SIZE; in dns_sd_query_extract() 1021 qsize = *query; in dns_sd_query_extract() 1023 ++query; in dns_sd_query_extract() [all …]
|
D | resolve.c | 377 && pending_query->query == NULL in check_query_active() 416 if (pending_query->query != NULL) { in invoke_query_callback() 440 pending_query->query = NULL; in release_query() 761 ctx->queries[query_idx].query, in dns_read() 964 if (ctx->queries[i].cb && ctx->queries[i].query) { in dns_resolve_cancel_all() 1102 pending_query->query); in query_timeout() 1108 const char *query, in dns_resolve_name() argument 1124 if (!ctx || !query || !cb) { in dns_resolve_name() 1136 ret = net_ipaddr_parse(query, strlen(query), &addr); in dns_resolve_name() 1199 ctx->queries[i].query = query; in dns_resolve_name() [all …]
|
/Zephyr-Core-2.7.6/subsys/net/lib/coap/ |
D | coap_link_format.c | 136 const struct coap_option *query) in match_attributes() argument 147 if (query->len != attr_len) { in match_attributes() 151 if (!strncmp((char *) query->value, *attr, attr_len)) { in match_attributes() 160 const struct coap_option *query, in match_queries_resource() argument 179 if (query->len > href_len + 1 && in match_queries_resource() 180 !strncmp((char *) query->value, "href", href_len)) { in match_queries_resource() 182 const char *uri = (char *) query->value + href_len + 1; in match_queries_resource() 183 uint16_t uri_len = query->len - (href_len + 1); in match_queries_resource() 188 return match_attributes(attributes, query); in match_queries_resource() 442 struct coap_option query; in coap_well_known_core_get() local [all …]
|
/Zephyr-Core-2.7.6/samples/net/mdns_responder/ |
D | README.rst | 18 - avahi or similar mDNS capable application that is able to query mDNS 42 If the query is successful, then following information is printed: 48 For a IPv6 query, type this: 54 If the query is successful, then following information is printed: 66 If the query is successful, then the following information is printed:
|
/Zephyr-Core-2.7.6/include/net/ |
D | dns_resolve.h | 228 const char *query; member 373 const char *query, 419 static inline int dns_get_addr_info(const char *query, in dns_get_addr_info() argument 427 query, in dns_get_addr_info()
|
/Zephyr-Core-2.7.6/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-Core-2.7.6/tests/net/lib/dns_packet/src/ |
D | main.c | 1058 const uint8_t *query, in setup_dns_context() argument 1064 ctx->queries[idx].query = query; in setup_dns_context() 1066 ctx->queries[idx].query_hash = crc16_ansi(query, query_len); in setup_dns_context() 1077 static const uint8_t query[] = { in run_dns_malformed_response() local 1096 setup_dns_context(&dns_ctx, 0, dns_id, query, sizeof(query), in run_dns_malformed_response() 1136 static const uint8_t query[] = { in run_dns_valid_cname_response() local 1164 setup_dns_context(&dns_ctx, 0, dns_id, query, sizeof(query), in run_dns_valid_cname_response()
|
/Zephyr-Core-2.7.6/samples/net/sockets/coap_server/ |
D | README.rst | 23 /query 26 /location-query
|
/Zephyr-Core-2.7.6/subsys/debug/coredump/ |
D | coredump_core.c | 174 if (backend_api->query == NULL) { in coredump_query() 177 ret = backend_api->query(query_id, arg); in coredump_query()
|
D | coredump_backend_logging.c | 123 .query = coredump_logging_backend_query,
|
/Zephyr-Core-2.7.6/tests/net/lib/dns_sd/src/ |
D | main.c | 124 struct dns_query *query = in create_query() local 126 query->type = htons(rr_type); in create_query() 127 query->class_ = htons(DNS_CLASS_IN); in create_query() 765 static const uint8_t query[] = { in test_extract_service_type_enumeration() local 796 zassert_equal(ARRAY_SIZE(query), in test_extract_service_type_enumeration() 797 dns_sd_query_extract(query, ARRAY_SIZE(query), &record, label, size, &n), in test_extract_service_type_enumeration()
|
/Zephyr-Core-2.7.6/tests/subsys/debug/coredump_backends/src/ |
D | coredump_backend_empty.c | 81 .query = coredump_empty_backend_query,
|
/Zephyr-Core-2.7.6/include/debug/ |
D | coredump.h | 148 coredump_backend_query_t query; member
|
/Zephyr-Core-2.7.6/subsys/net/l2/ethernet/gptp/ |
D | gptp_messages.c | 354 struct gptp_hdr *hdr, *query; in gptp_prepare_pdelay_resp() local 372 query = GPTP_HDR(req); in gptp_prepare_pdelay_resp() 378 hdr->sequence_id = query->sequence_id; in gptp_prepare_pdelay_resp() 379 hdr->domain_number = query->domain_number; in gptp_prepare_pdelay_resp() 380 hdr->correction_field = query->correction_field; in gptp_prepare_pdelay_resp() 404 &query->port_id, sizeof(struct gptp_port_identity)); in gptp_prepare_pdelay_resp()
|
/Zephyr-Core-2.7.6/samples/net/stats/ |
D | README.rst | 9 This sample shows how to query (and display) network statistics from a user
|
/Zephyr-Core-2.7.6/doc/reference/networking/ |
D | dns_resolve.rst | 17 If a CNAME is received, the DNS resolver will create another DNS query.
|
/Zephyr-Core-2.7.6/subsys/net/l2/ethernet/ |
D | arp.c | 499 struct net_arp_hdr *hdr, *query; in arp_prepare_reply() local 511 query = NET_ARP_HDR(req); in arp_prepare_reply() 526 net_ipaddr_copy(&hdr->dst_ipaddr, &query->src_ipaddr); in arp_prepare_reply() 527 net_ipaddr_copy(&hdr->src_ipaddr, &query->dst_ipaddr); in arp_prepare_reply()
|
/Zephyr-Core-2.7.6/subsys/mgmt/osdp/ |
D | Kconfig.cp | 41 The Control Panel must query the Peripheral Device periodically to
|
/Zephyr-Core-2.7.6/scripts/footprint/ |
D | upload_data.py | 104 result = client.query(f"select * from kernel where commit = '{hash}';")
|
/Zephyr-Core-2.7.6/samples/net/dns_resolve/ |
D | README.rst | 123 query. Note that the hostname should not have any dots in it.
|
/Zephyr-Core-2.7.6/ |
D | README.rst | 12 …href="https://github.com/zephyrproject-rtos/zephyr/actions/workflows/twister.yaml?query=branch%3Am…
|