aboutsummaryrefslogtreecommitdiff
path: root/gmid.h
diff options
context:
space:
mode:
Diffstat (limited to 'gmid.h')
-rw-r--r--gmid.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/gmid.h b/gmid.h
index 3a28c29..d68e0e3 100644
--- a/gmid.h
+++ b/gmid.h
@@ -290,12 +290,13 @@ enum proto {
};
struct proxy_protocol_v1 {
- enum proto proto;
- union {
- struct in_addr v4;
- struct in6_addr v6;
- } srcaddr, dstaddr;
- uint16_t srcport, dstport;
+ enum proto proto;
+ struct sockaddr_storage srcaddr;
+ socklen_t srclen;
+ struct sockaddr_storage dstaddr;
+ socklen_t dstlen;
+ uint16_t srcport;
+ uint16_t dstport;
};
#define BUFLAYER_MAX 108