had qname wrong, fixed it

This commit is contained in:
Meredith L. Patterson 2012-05-24 13:58:38 +02:00
parent 3c51389eaf
commit 0d9497bce6

View file

@ -72,7 +72,10 @@ 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(),
uint8())),
ch('\x00'),
NULL), // QNAME
qtype, // QTYPE qtype, // QTYPE
qclass, // QCLASS qclass, // QCLASS
NULL); NULL);