aboutsummaryrefslogtreecommitdiff
path: root/src/dns.c
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2021-05-20 21:29:45 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2021-05-20 21:29:45 +0200
commitd4c41cc1c9195d5843d3ff1519636f4519e33fa9 (patch)
tree93592ae872efb0878ad597ba2f55d97ac5e374c9 /src/dns.c
parent57e6cf6b01e981ce159d472f3e3ed92f893ad443 (diff)
downloaddns-d4c41cc1c9195d5843d3ff1519636f4519e33fa9.tar.gz
reworked server logic, handles responses properly now
Diffstat (limited to 'src/dns.c')
-rw-r--r--src/dns.c2
1 files changed, 1 insertions, 1 deletions
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 (