get_qname done, starting get_domain, going to finish Great Symbol Renaming first
This commit is contained in:
parent
5163f002cf
commit
a077251947
2 changed files with 45 additions and 3 deletions
|
|
@ -8,8 +8,15 @@ struct dns_header {
|
|||
size_t authority_count;
|
||||
size_t additional_count;
|
||||
};
|
||||
struct dns_qname {
|
||||
size_t qlen;
|
||||
struct {
|
||||
size_t len;
|
||||
uint8_t *label;
|
||||
} *labels;
|
||||
};
|
||||
struct dns_question {
|
||||
char** qname; // change to whatever format you want; I'm assuming you'll keep the length-prefixed terms.
|
||||
struct dns_qname qname;
|
||||
uint16_t qtype;
|
||||
uint16_t qclass;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue