aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Dunwoodie <ncon@noconroy.net>2019-12-11 12:06:06 +1100
committerMatt Dunwoodie <ncon@noconroy.net>2019-12-11 12:06:06 +1100
commit95da419497533a9204cd45a6389e97eea74e957d (patch)
tree436bd99d53fcc10c6bed9264686a2d5f08fc03a4
parentRename noisekeypair pool to sort next to others (diff)
downloadwireguard-openbsd-master.tar.xz
wireguard-openbsd-master.zip
Whitespace cleanup in if_wg_vars.hHEADmaster
-rw-r--r--src/if_wg_vars.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/if_wg_vars.h b/src/if_wg_vars.h
index c1ff254..f30e0e2 100644
--- a/src/if_wg_vars.h
+++ b/src/if_wg_vars.h
@@ -73,7 +73,7 @@ struct wg_endpoint {
struct sockaddr_in6 r_sin6;
} e_remote;
union wg_source {
- struct in_addr l_in;
+ struct in_addr l_in;
struct in6_pktinfo l_pktinfo6;
#define l_in6 l_pktinfo6.ipi6_addr
} e_local;
@@ -98,12 +98,12 @@ struct wg_socket {
struct wg_pkt_header {
uint32_t type;
-} __packed;
+} __packed;
struct wg_pkt_macs {
- uint8_t mac1 [WG_MAC_SIZE];
- uint8_t mac2 [WG_MAC_SIZE];
-};
+ uint8_t mac1[WG_MAC_SIZE];
+ uint8_t mac2[WG_MAC_SIZE];
+} __packed;
struct wg_pkt_initiation {
struct wg_pkt_header header;
@@ -112,7 +112,7 @@ struct wg_pkt_initiation {
uint8_t encrypted_static[WG_KEY_SIZE + WG_MAC_SIZE];
uint8_t encrypted_timestamp[WG_TIMESTAMP_SIZE + WG_MAC_SIZE];
struct wg_pkt_macs macs;
-} __packed;
+} __packed;
struct wg_pkt_response {
struct wg_pkt_header header;
@@ -121,21 +121,21 @@ struct wg_pkt_response {
uint8_t unencrypted_ephemeral[WG_KEY_SIZE];
uint8_t encrypted_nothing[0 + WG_MAC_SIZE];
struct wg_pkt_macs macs;
-} __packed;
+} __packed;
struct wg_pkt_cookie {
struct wg_pkt_header header;
uint32_t receiver_index;
uint8_t nonce[WG_XNONCE_SIZE];
uint8_t encrypted_cookie[WG_COOKIE_SIZE + WG_MAC_SIZE];
-} __packed;
+} __packed;
struct wg_pkt_data {
struct wg_pkt_header header;
uint32_t receiver_index;
uint64_t nonce;
uint8_t buf [];
-} __packed;
+} __packed;
/* Queue */
struct wg_queue_pkt {