Nearly done with RR parsing, need to write two helpers for this.
This commit is contained in:
parent
6feb0ac547
commit
0c324adaa6
2 changed files with 198 additions and 8 deletions
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue