aboutsummaryrefslogtreecommitdiff
path: root/src/dns.h
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.h
parent57e6cf6b01e981ce159d472f3e3ed92f893ad443 (diff)
downloaddns-d4c41cc1c9195d5843d3ff1519636f4519e33fa9.tar.gz
reworked server logic, handles responses properly now
Diffstat (limited to 'src/dns.h')
-rw-r--r--src/dns.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dns.h b/src/dns.h
index 009f861..2d5ccdf 100644
--- a/src/dns.h
+++ b/src/dns.h
@@ -71,6 +71,8 @@ enum dns_responsecode {
REFUSED = 5
};
+#define DNS_HEADER_LEN 12
+
#define FLIP_BYTES(u) (((0x00FF & u) << 8) | ((0xFF00 & u) >> 8))
/**