aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/uapi.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/uapi.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/uapi.h b/src/uapi.h
index e5d7368..df45c96 100644
--- a/src/uapi.h
+++ b/src/uapi.h
@@ -105,7 +105,11 @@ struct wgpeer {
__u8 public_key[WG_KEY_LEN]; /* Get/Set */
__u32 flags; /* Set */
- struct sockaddr_storage endpoint; /* Get/Set */
+ union {
+ struct sockaddr addr;
+ struct sockaddr_in addr4;
+ struct sockaddr_in6 addr6;
+ } endpoint; /* Get/Set */
struct timeval last_handshake_time; /* Get */
__u64 rx_bytes, tx_bytes; /* Get */