mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:57:44 +00:00
LookupServer: Unify DNSRequest & DNSResponse
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.
This commit is contained in:
parent
e3135e7ca5
commit
1dad63824b
8 changed files with 145 additions and 207 deletions
|
@ -25,7 +25,7 @@
|
|||
*/
|
||||
|
||||
#include "ClientConnection.h"
|
||||
#include "DNSRequest.h"
|
||||
#include "DNSPacket.h"
|
||||
#include "LookupServer.h"
|
||||
#include <AK/IPv4Address.h>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue