From d4c41cc1c9195d5843d3ff1519636f4519e33fa9 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Thu, 20 May 2021 21:29:45 +0200 Subject: reworked server logic, handles responses properly now --- src/dns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dns.c') diff --git a/src/dns.c b/src/dns.c index 190069c..db122dd 100644 --- a/src/dns.c +++ b/src/dns.c @@ -26,7 +26,7 @@ int dns_construct_header ( char* _buffer, int _bufflen, dns_header_t* _header ) *((uint16_t*)(_buffer + 8 )) = FLIP_BYTES(_header->authorative_count); *((uint16_t*)(_buffer + 10)) = FLIP_BYTES(_header->additional_count); - return 12; + return DNS_HEADER_LEN; } int dns_construct_answer ( -- cgit v1.2.3