Nearly done with RR parsing, need to write two helpers for this.

This commit is contained in:
Meredith L. Patterson 2012-05-26 15:50:39 +02:00
parent 6feb0ac547
commit 0c324adaa6
2 changed files with 198 additions and 8 deletions

View file

@ -1,4 +1,5 @@
typedef int bool;
#include "../src/hammer.h"
struct dns_header {
uint16_t id;
bool qr, aa, tc, rd, ra;
@ -66,7 +67,7 @@ struct dns_rr {
uint32_t address;
uint8_t protocol;
size_t len;
uint8_t** bit_map;
uint8_t* bit_map;
} wks;
};
};