Skip to content
Snippets Groups Projects
Commit 0d9497bc authored by Meredith L. Patterson's avatar Meredith L. Patterson
Browse files

had qname wrong, fixed it

parent 3c51389e
Branches
Tags
No related merge requests found
...@@ -72,9 +72,12 @@ parser_t* init_parser() { ...@@ -72,9 +72,12 @@ parser_t* init_parser() {
int_range(uint16(), 255, 255), int_range(uint16(), 255, 255),
NULL); NULL);
const parser_t *dns_question = sequence(length_value(uint8(), uint8()), // QNAME const parser_t *dns_question = sequence(sequence(many1(length_value(uint8(),
qtype, // QTYPE uint8())),
qclass, // QCLASS ch('\x00'),
NULL), // QNAME
qtype, // QTYPE
qclass, // QCLASS
NULL); NULL);
const parser_t *letter = choice(ch_range('a', 'z'), const parser_t *letter = choice(ch_range('a', 'z'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment