mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-05-19 17:49:04 +00:00
They're really the same thing: a DNS packet can contain both questions and answers, and there's a single bit in the header that determines whether the packet represents a query or a response. It'll be simpler for us to represent both types of packets using the same class. This class can be both serialized and deserialized to/from a raw DNS packet.