Home
last modified time | relevance | path

Searched refs:dns_id (Results 1 – 9 of 9) sorted by relevance

/Zephyr-latest/samples/net/dns_resolve/src/
Dmain.c140 static uint16_t dns_id; in do_ipv4_lookup() local
145 &dns_id, in do_ipv4_lookup()
154 LOG_DBG("DNS id %u", dns_id); in do_ipv4_lookup()
296 static uint16_t dns_id; in do_ipv4_lookup() local
301 &dns_id, in do_ipv4_lookup()
310 LOG_DBG("DNS id %u", dns_id); in do_ipv4_lookup()
338 static uint16_t dns_id; in do_ipv6_lookup() local
343 &dns_id, in do_ipv6_lookup()
352 LOG_DBG("DNS id %u", dns_id); in do_ipv6_lookup()
/Zephyr-latest/include/zephyr/net/
Ddns_resolve.h520 uint16_t dns_id);
535 uint16_t dns_id,
569 uint16_t *dns_id,
615 uint16_t *dns_id, in dns_get_addr_info() argument
623 dns_id, in dns_get_addr_info()
638 static inline int dns_cancel_addr_info(uint16_t dns_id) in dns_cancel_addr_info() argument
640 return dns_resolve_cancel(dns_resolve_get_default(), dns_id); in dns_cancel_addr_info()
/Zephyr-latest/subsys/net/lib/dns/
Dresolve.c94 uint16_t *dns_id,
98 uint16_t dns_id,
211 uint16_t dns_id = 0U; in dispatcher_cb() local
226 ret = dns_read(ctx, dns_data, len, &dns_id, dns_cname, &query_hash); in dispatcher_cb()
239 i = get_slot_by_id(ctx, dns_id, query_hash); in dispatcher_cb()
270 i = get_slot_by_id(ctx, dns_id, query_hash); in dispatcher_cb()
717 uint16_t dns_id, in get_slot_by_id() argument
724 ctx->queries[i].id == dns_id && in get_slot_by_id()
740 uint16_t *dns_id, in dns_validate_msg() argument
757 if (dns_msg->msg_size < (sizeof(*dns_id) + sizeof(uint16_t))) { in dns_validate_msg()
[all …]
Dllmnr_responder.c167 static void setup_dns_hdr(uint8_t *buf, uint16_t answers, uint16_t dns_id) in setup_dns_hdr() argument
176 UNALIGNED_PUT(htons(dns_id), (uint16_t *)(buf)); in setup_dns_hdr()
243 uint16_t dns_id, in create_answer() argument
258 setup_dns_hdr(query->data, 1, dns_id); in create_answer()
305 uint16_t dns_id, in create_ipv4_answer() argument
324 if (create_answer(qtype, query, dns_id, addr_len, addr)) { in create_ipv4_answer()
338 uint16_t dns_id, in create_ipv6_answer() argument
357 if (create_answer(qtype, query, dns_id, addr_len, addr)) { in create_ipv6_answer()
372 uint16_t dns_id) in send_response() argument
381 qtype, reply, dns_id, in send_response()
[all …]
Ddns_internal.h16 uint16_t *dns_id,
/Zephyr-latest/tests/net/lib/dns_packet/src/
Dmain.c1075 uint16_t dns_id, in setup_dns_context() argument
1081 ctx->queries[idx].id = dns_id; in setup_dns_context()
1104 uint16_t dns_id = 0; in run_dns_malformed_response() local
1112 dns_id = dns_unpack_header_id(dns_msg.msg); in run_dns_malformed_response()
1118 setup_dns_context(&dns_ctx, 0, dns_id, query, sizeof(query), in run_dns_malformed_response()
1122 ret = dns_validate_msg(&dns_ctx, &dns_msg, &dns_id, &query_idx, in run_dns_malformed_response()
1133 uint16_t dns_id = 0; in run_dns_valid_response() local
1141 ret = dns_validate_msg(&dns_ctx, &dns_msg, &dns_id, &query_idx, in run_dns_valid_response()
1174 uint16_t dns_id = 0; in run_dns_valid_cname_response() local
1185 dns_id = dns_unpack_header_id(dns_msg.msg); in run_dns_valid_cname_response()
[all …]
/Zephyr-latest/tests/net/lib/dns_resolve/src/
Dmain.c118 uint16_t dns_id) in get_slot_by_id() argument
123 if (ctx->queries[i].cb && ctx->queries[i].id == dns_id) { in get_slot_by_id()
536 uint16_t dns_id; in ZTEST() local
543 &dns_id, in ZTEST()
549 ret = dns_cancel_addr_info(dns_id); in ZTEST()
562 uint16_t dns_id; in ZTEST() local
569 &dns_id, in ZTEST()
575 ret = dns_cancel_addr_info(dns_id); in ZTEST()
/Zephyr-latest/subsys/net/lib/sockets/
Dgetaddrinfo.c53 uint16_t dns_id; member
140 ret = dns_get_addr_info(host, qtype, &ai_state->dns_id, in exec_query()
156 (void)dns_cancel_addr_info(ai_state->dns_id); in exec_query()
266 ai_state.dns_id = 0; in z_impl_z_zsock_getaddrinfo_internal()
/Zephyr-latest/samples/net/cellular_modem/src/
Dmain.c109 static uint16_t dns_id; in sample_dns_request() local
115 &dns_id, in sample_dns_request()