From: Jason A. Donenfeld Date: Mon, 14 May 2018 02:36:20 +0000 (+0200) Subject: No need for padding any more X-Git-Tag: 0.0.20180514~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17262dfd62a548e44269535ce60a905613901063;p=thirdparty%2Fwireguard-go.git No need for padding any more --- diff --git a/peer.go b/peer.go index 954c69c..4bc1ada 100644 --- a/peer.go +++ b/peer.go @@ -25,8 +25,8 @@ type Peer struct { device *Device endpoint Endpoint persistentKeepaliveInterval uint16 - _ uint32 // padding for alignment + // This must be 64-bit aligned, so make sure the above members come out to even alignment and pad accordingly stats struct { txBytes uint64 // bytes send to peer (endpoint) rxBytes uint64 // bytes received from peer