From bb85374b79086cd8efde24d23a1bffeb97cae26b Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Wed, 5 Apr 2023 23:08:09 -0400 Subject: new c version --- src/packet/question.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/packet/question.h (limited to 'src/packet/question.h') diff --git a/src/packet/question.h b/src/packet/question.h new file mode 100644 index 0000000..e8c385a --- /dev/null +++ b/src/packet/question.h @@ -0,0 +1,15 @@ +#pragma once + +#include "buffer.h" +#include "record.h" + +typedef struct { + uint8_t* domain; + RecordType qtype; + uint16_t cls; +} Question; + +void read_question(PacketBuffer* buffer, Question* question); +void write_question(PacketBuffer* buffer, Question* question); +void free_question(Question* question); +void print_question(Question* question, char* buffer); -- cgit v1.2.3-freya