mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 12:27:36 +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
|
@ -26,8 +26,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "DNSRequest.h"
|
||||
#include "DNSResponse.h"
|
||||
#include "DNSPacket.h"
|
||||
#include <LibCore/Object.h>
|
||||
|
||||
namespace LookupServer {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue