Update code, basic tests

This commit is contained in:
Nick Peng
2018-05-27 22:57:54 +08:00
parent fc736d666c
commit 75ebf7ce49
8 changed files with 200 additions and 92 deletions

5
dns.h
View File

@@ -12,6 +12,11 @@
#define DNS_IN_PACKSIZE (512 * 2)
#define DNS_PACKSIZE (512 * 4)
typedef enum dns_qr {
DNS_QR_QUERY = 0,
DNS_QR_ANSWER = 1,
}dns_qr;
typedef enum dns_rr_type {
DNS_RRS_QD = 0,
DNS_RRS_AN = 1,