mirror of
https://github.com/RGBCube/serenity
synced 2025-07-29 04:17:35 +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
|
@ -3,8 +3,7 @@ compile_ipc(LookupClient.ipc LookupClientEndpoint.h)
|
|||
|
||||
set(SOURCES
|
||||
DNSAnswer.cpp
|
||||
DNSRequest.cpp
|
||||
DNSResponse.cpp
|
||||
DNSPacket.cpp
|
||||
LookupServer.cpp
|
||||
LookupServerEndpoint.h
|
||||
LookupClientEndpoint.h
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue