Skip to content
Snippets Groups Projects
Commit 6076f5fc authored by Marek Vavrusa's avatar Marek Vavrusa
Browse files

Enabled parsing of flags2 (RA,Z,RCODE).

This is required to correctly parse response,
shouldn't be disabled. [please-review]
parent 054ed0c6
No related branches found
No related tags found
No related merge requests found
......@@ -225,10 +225,8 @@ static int knot_packet_parse_header(const uint8_t *wire, size_t *pos,
}
header->id = knot_wire_get_id(wire);
// copy some of the flags: OPCODE and RD
// do this by copying flags1 and setting QR to 1, AA to 0 and TC to 0
header->flags1 = knot_wire_get_flags1(wire);
// do not copy flags2 (all set by server)
header->flags2 = knot_wire_get_flags2(wire);
header->qdcount = knot_wire_get_qdcount(wire);
header->ancount = knot_wire_get_ancount(wire);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment