diff options
author | Matt Dunwoodie <ncon@mail.noconroy.net> | 2019-08-29 14:03:10 +1000 |
---|---|---|
committer | Matt Dunwoodie <ncon@mail.noconroy.net> | 2019-08-29 14:03:10 +1000 |
commit | 00aaa3963c801c848f8ce25750d3cccab36ea348 (patch) | |
tree | 7f49e621374ba3de17535abec4e251d6a6d7e34d /src | |
parent | Add support for masked/hidden keys (diff) | |
download | wireguard-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.h | 2 |
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; |