aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorMatt Dunwoodie <ncon@mail.noconroy.net>2019-08-29 14:03:10 +1000
committerMatt Dunwoodie <ncon@mail.noconroy.net>2019-08-29 14:03:10 +1000
commit00aaa3963c801c848f8ce25750d3cccab36ea348 (patch)
tree7f49e621374ba3de17535abec4e251d6a6d7e34d /src
parentAdd support for masked/hidden keys (diff)
downloadwireguard-monolithic-historical-00aaa3963c801c848f8ce25750d3cccab36ea348.tar.xz
wireguard-monolithic-historical-00aaa3963c801c848f8ce25750d3cccab36ea348.zip
Add name to anonymous union
This is required for the Cython library I'm working on. I don't see this causing any issues.
Diffstat (limited to 'src')
-rw-r--r--src/tools/containers.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/containers.h b/src/tools/containers.h
index 59a213e..b6c9d39 100644
--- a/src/tools/containers.h
+++ b/src/tools/containers.h
@@ -45,7 +45,7 @@ struct wgpeer {
uint8_t public_key[WG_KEY_LEN];
uint8_t preshared_key[WG_KEY_LEN];
- union {
+ union wgendpoint {
struct sockaddr addr;
struct sockaddr_in addr4;
struct sockaddr_in6 addr6;