mirror of
https://github.com/tailscale/tailscale.git
synced 2025-02-27 10:47:35 +00:00
wgengine/tstun: fix alignment of 64-bit atomic field
We had a test for it, but no 32-bit builder apparently. :( Fixes #529
This commit is contained in:
parent
4db60a8436
commit
724ad13fe1
@ -58,7 +58,8 @@ type TUN struct {
|
|||||||
// tdev is the underlying TUN device.
|
// tdev is the underlying TUN device.
|
||||||
tdev tun.Device
|
tdev tun.Device
|
||||||
|
|
||||||
lastActivityAtomic int64 // unix seconds of last send or receive
|
_ [4]byte // force 64-bit alignment of following field on 32-bit
|
||||||
|
lastActivityAtomic int64 // unix seconds of last send or receive
|
||||||
|
|
||||||
// buffer stores the oldest unconsumed packet from tdev.
|
// buffer stores the oldest unconsumed packet from tdev.
|
||||||
// It is made a static buffer in order to avoid allocations.
|
// It is made a static buffer in order to avoid allocations.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user