move get_cs into an action
This commit is contained in:
parent
0304c75bba
commit
8fbc137223
3 changed files with 24 additions and 16 deletions
|
|
@ -13,9 +13,13 @@ enum DNSTokenType_ {
|
|||
TT_dns_rr_mx_t,
|
||||
TT_dns_rr_soa_t,
|
||||
TT_dns_rr_wks_t,
|
||||
TT_dns_domain_t
|
||||
TT_dns_domain_t,
|
||||
TT_dns_cstr_t
|
||||
};
|
||||
|
||||
typedef char *dns_domain_t;
|
||||
typedef uint8_t *dns_cstr_t;
|
||||
|
||||
typedef struct dns_header {
|
||||
uint16_t id;
|
||||
bool qr, aa, tc, rd, ra;
|
||||
|
|
@ -43,8 +47,8 @@ typedef struct dns_question {
|
|||
} dns_question_t;
|
||||
|
||||
typedef struct {
|
||||
uint8_t* cpu;
|
||||
uint8_t* os;
|
||||
dns_cstr_t cpu;
|
||||
dns_cstr_t os;
|
||||
} dns_rr_hinfo_t;
|
||||
|
||||
typedef struct {
|
||||
|
|
@ -105,8 +109,6 @@ 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