summaryrefslogtreecommitdiff
path: root/lib/doh.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/doh.h')
-rw-r--r--lib/doh.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/doh.h b/lib/doh.h
index 96c1fa7c1..5f879e50e 100644
--- a/lib/doh.h
+++ b/lib/doh.h
@@ -67,10 +67,6 @@ typedef enum {
#define DOH_MAX_ADDR 24
#define DOH_MAX_CNAME 4
-struct addr6 {
- unsigned char byte[16];
-};
-
struct cnamestore {
size_t len; /* length of cname */
char *alloc; /* allocated pointer */
@@ -80,8 +76,8 @@ struct cnamestore {
struct dohaddr {
int type;
union {
- unsigned int v4;
- struct addr6 v6;
+ unsigned char v4[4]; /* network byte order */
+ unsigned char v6[16];
} ip;
};