35#define DNS_IS_COMPRESSED( byte ) ( (byte) & 0xc0 )
43#define DNS_COMPRESSED_OFFSET( word ) ( (word) & ~0xc000 )
51#define DNS_LABEL_LEN( byte ) ( (byte) & ~0xc0 )
54#define DNS_MAX_LABEL_LEN 0x3f
57#define DNS_MAX_NAME_LEN 255
63#define DNS_MAX_CNAME_RECURSION 32
82#define DNS_FLAG_RD 0x0100
119#define DNS_TYPE_AAAA 28
130#define DNS_TYPE_CNAME 5
int dns_encode(const char *string, struct dns_name *name)
Encode a DNS name using RFC1035 encoding.
int dns_skip(struct dns_name *name)
Skip RFC1035-encoded DNS name.
int dns_copy(struct dns_name *src, struct dns_name *dst)
Copy a DNS name.
int dns_compare(struct dns_name *first, struct dns_name *second)
Compare DNS names for equality.
int dns_decode(struct dns_name *name, char *data, size_t len)
Decode RFC1035-encoded DNS name.
uint8_t data[48]
Additional event data.
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
uint32_t first
First block in range.
An RFC1035-encoded DNS name.
size_t offset
Offset of name within data.
void * data
Start of data.
size_t len
Total length of data.
uint16_t qtype
Query type.
uint16_t qclass
Query class.
struct dns_rr_common common
Common fields.
struct in_addr in_addr
IPv4 address.
struct dns_rr_common common
Common fields.
struct in6_addr in6_addr
IPv6 address.
struct dns_rr_common common
Common fields.
uint32_t ttl
Time to live.
uint16_t rdlength
Resource data length.
struct dns_rr_aaaa aaaa
"AAAA" record
struct dns_rr_cname cname
"CNAME" record
struct dns_rr_common common
Common fields.
struct dns_rr_a a
"A" record