Home
last modified time | relevance | path

Searched refs:dns_msg (Results 1 – 8 of 8) sorted by relevance

/Zephyr-Core-3.5.0/subsys/net/lib/dns/
Ddns_pack.c69 static inline void set_dns_msg_response(struct dns_msg_t *dns_msg, int type, in set_dns_msg_response() argument
72 dns_msg->response_type = type; in set_dns_msg_response()
73 dns_msg->response_position = pos; in set_dns_msg_response()
74 dns_msg->response_length = len; in set_dns_msg_response()
109 int dns_unpack_answer(struct dns_msg_t *dns_msg, int dname_ptr, uint32_t *ttl, in dns_unpack_answer() argument
118 answer = dns_msg->msg + dns_msg->answer_offset; in dns_unpack_answer()
121 dns_msg->msg_size - dns_msg->answer_offset); in dns_unpack_answer()
137 rem_size = dns_msg->msg_size - dname_len; in dns_unpack_answer()
154 pos = dns_msg->answer_offset + dname_len + in dns_unpack_answer()
164 set_dns_msg_response(dns_msg, DNS_RESPONSE_IP, pos, len); in dns_unpack_answer()
[all …]
Dresolve.c468 struct dns_msg_t *dns_msg, in dns_validate_msg() argument
486 if (dns_msg->msg_size < (sizeof(*dns_id) + sizeof(uint16_t))) { in dns_validate_msg()
497 *dns_id = dns_unpack_header_id(dns_msg->msg); in dns_validate_msg()
499 if (dns_header_rcode(dns_msg->msg) == DNS_HEADER_REFUSED) { in dns_validate_msg()
507 if (dns_header_qr(dns_msg->msg) == DNS_QUERY) { in dns_validate_msg()
512 ret = dns_unpack_response_header(dns_msg, *dns_id); in dns_validate_msg()
518 if (dns_header_qdcount(dns_msg->msg) != 1) { in dns_validate_msg()
526 ret = dns_unpack_response_query(dns_msg); in dns_validate_msg()
537 dns_msg->answer_offset = dns_msg->query_offset; in dns_validate_msg()
551 while (server_idx < dns_header_ancount(dns_msg->msg)) { in dns_validate_msg()
[all …]
Ddns_internal.h15 struct dns_msg_t *dns_msg,
Ddns_pack.h347 int dns_unpack_answer(struct dns_msg_t *dns_msg, int dname_ptr, uint32_t *ttl,
401 int dns_unpack_response_query(struct dns_msg_t *dns_msg);
421 struct dns_msg_t *dns_msg, uint16_t pos);
461 int dns_unpack_query(struct dns_msg_t *dns_msg, struct net_buf *buf,
Dmdns_responder.c333 struct dns_msg_t *dns_msg, in send_sd_response() argument
398 ret = dns_sd_query_extract(dns_msg->msg, in send_sd_response()
399 dns_msg->msg_size, &filter, label, size, &n); in send_sd_response()
469 struct dns_msg_t dns_msg; in dns_read() local
493 dns_msg.msg = dns_data->data; in dns_read()
494 dns_msg.msg_size = data_len; in dns_read()
496 ret = mdns_unpack_query_header(&dns_msg, NULL); in dns_read()
519 ret = dns_unpack_query(&dns_msg, result, &qtype, &qclass); in dns_read()
548 &dns_msg, result); in dns_read()
Dllmnr_responder.c448 struct dns_msg_t dns_msg; in dns_read() local
472 dns_msg.msg = dns_data->data; in dns_read()
473 dns_msg.msg_size = data_len; in dns_read()
475 ret = llmnr_unpack_query_header(&dns_msg, &dns_id); in dns_read()
497 ret = dns_unpack_query(&dns_msg, result, &qtype, &qclass); in dns_read()
/Zephyr-Core-3.5.0/tests/net/lib/dns_packet/src/
Dmain.c1085 struct dns_msg_t dns_msg = { 0 }; in run_dns_malformed_response() local
1091 dns_msg.msg = buf; in run_dns_malformed_response()
1092 dns_msg.msg_size = len; in run_dns_malformed_response()
1094 dns_id = dns_unpack_header_id(dns_msg.msg); in run_dns_malformed_response()
1099 ret = dns_validate_msg(&dns_ctx, &dns_msg, &dns_id, &query_idx, in run_dns_malformed_response()
1109 struct dns_msg_t dns_msg = { 0 }; in run_dns_valid_response() local
1115 dns_msg.msg = buf; in run_dns_valid_response()
1116 dns_msg.msg_size = len; in run_dns_valid_response()
1118 ret = dns_validate_msg(&dns_ctx, &dns_msg, &dns_id, &query_idx, in run_dns_valid_response()
1149 struct dns_msg_t dns_msg = { 0 }; in run_dns_valid_cname_response() local
[all …]
/Zephyr-Core-3.5.0/tests/net/socket/getaddrinfo/src/
Dmain.c46 struct dns_msg_t dns_msg; in check_dns_query() local
63 dns_msg.msg = buf; in check_dns_query()
64 dns_msg.msg_size = buf_len; in check_dns_query()
66 ret = mdns_unpack_query_header(&dns_msg, NULL); in check_dns_query()
80 ret = dns_unpack_query(&dns_msg, result, &qtype, &qclass); in check_dns_query()