summaryrefslogtreecommitdiff
path: root/src/packet/question.h
blob: 43e03b3e51ea71de7f967de94f96860a71901d08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#pragma once

#include "buffer.h"
#include "record.h"

typedef struct {
    uint8_t* domain;
    RecordType qtype;
    uint16_t cls;
} Question;

bool 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);