Skip to content
Snippets Groups Projects
Commit e254af8f authored by Roman Khlopkov's avatar Roman Khlopkov 🔜
Browse files

[*] Hostinfo in DNS reply debugged

parent 07735d51
No related branches found
No related tags found
5 merge requests!251Master,!250Master,!162Bugs-4158,!159Bugs-4158,!156bugs-4158
Pipeline #4040 passed with stage
in 33 seconds
......@@ -297,8 +297,8 @@ void dap_dns_client_read(dap_client_remote_t *client, void * arg) {
}
}
if (l_node_info) {
// Compose DNS answer
block_len = DNS_ANSWER_SIZE * 2;
// Compose DNS answer
block_len = DNS_ANSWER_SIZE * 2 - sizeof(uint16_t) + sizeof(uint64_t);
dns_reply->data = DAP_REALLOC(dns_reply->data, dns_reply->ptr + block_len);
val = 0xc000 | DNS_HEADER_SIZE; // Link to host name
dap_dns_buf_put_uint16(dns_reply, val);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment