move get_domain logic into an action on the domain parser
This commit is contained in:
parent
16b1e02baa
commit
0083031d6f
3 changed files with 35 additions and 26 deletions
|
|
@ -6,7 +6,8 @@ enum DNSTokenType_ {
|
|||
TT_dns_label,
|
||||
TT_dns_qname,
|
||||
TT_dns_question,
|
||||
TT_dns_rr
|
||||
TT_dns_rr,
|
||||
TT_dns_domain
|
||||
};
|
||||
|
||||
typedef struct dns_header {
|
||||
|
|
@ -98,6 +99,8 @@ typedef struct dns_rr {
|
|||
};
|
||||
} dns_rr_t;
|
||||
|
||||
typedef char *dns_domain_t;
|
||||
|
||||
typedef struct dns_message {
|
||||
dns_header_t header;
|
||||
dns_question_t *questions;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue