From 3bedfdb18b9f11333c6b98e5b8113a6c709db9bf Mon Sep 17 00:00:00 2001 From: evilsocket Date: Thu, 8 Feb 2018 07:17:25 +0100 Subject: [PATCH] fix: fixing structure alignment for AddUint64 on ARM --- packets/queue.go | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/packets/queue.go b/packets/queue.go index 96301e7a..052e32cd 100644 --- a/packets/queue.go +++ b/packets/queue.go @@ -28,18 +28,19 @@ type Traffic struct { type Queue struct { sync.Mutex - iface *bnet.Endpoint - handle *pcap.Handle - source *gopacket.PacketSource - active bool - - Activities chan Activity `json:"-"` Sent uint64 Received uint64 PktReceived uint64 Errors uint64 - Protos map[string]uint64 - Traffic map[string]*Traffic + + Activities chan Activity `json:"-"` + Protos map[string]uint64 + Traffic map[string]*Traffic + + iface *bnet.Endpoint + handle *pcap.Handle + source *gopacket.PacketSource + active bool } func NewQueue(iface *bnet.Endpoint) (*Queue, error) {