read the packets into packet structs

This commit is contained in:
Piper Pentagram 2025-07-08 15:36:27 -07:00
parent f1e00117d9
commit 68400a25b7
5 changed files with 53 additions and 4 deletions

View file

@ -1,7 +1,10 @@
#pragma once
#include "dns_packets.h"
#include "dns_packet_buffer.h"
struct DNSRequest {
struct DNSPacketHeader header;
struct DNSPacketHeader *header;
};
struct DNSRequest *new_dns_request(struct DNSPacketBuffer *pb);