No need for padding any more
This commit is contained in:
parent
25df2e6942
commit
17262dfd62
2
peer.go
2
peer.go
|
@ -25,8 +25,8 @@ type Peer struct {
|
||||||
device *Device
|
device *Device
|
||||||
endpoint Endpoint
|
endpoint Endpoint
|
||||||
persistentKeepaliveInterval uint16
|
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 {
|
stats struct {
|
||||||
txBytes uint64 // bytes send to peer (endpoint)
|
txBytes uint64 // bytes send to peer (endpoint)
|
||||||
rxBytes uint64 // bytes received from peer
|
rxBytes uint64 // bytes received from peer
|
||||||
|
|
Loading…
Reference in a new issue