1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 08:07: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:
Sergey Bugaev 2021-02-06 17:48:12 +03:00 committed by Andreas Kling
parent e3135e7ca5
commit 1dad63824b
8 changed files with 145 additions and 207 deletions

View file

@ -26,8 +26,7 @@
#pragma once
#include "DNSRequest.h"
#include "DNSResponse.h"
#include "DNSPacket.h"
#include <LibCore/Object.h>
namespace LookupServer {