]> Cypherpunks.ru repositories - govpn.git/commitdiff
It is possible that frame counters will be bigger than 32-bit
authorSergey Matveev <stargrave@stargrave.org>
Sat, 6 Feb 2016 11:01:59 +0000 (14:01 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sat, 6 Feb 2016 11:01:59 +0000 (14:01 +0300)
Signed-off-by: Sergey Matveev <stargrave@stargrave.org>
src/cypherpunks.ru/govpn/peer.go

index 5ea245bbd44a02aa196c66801b3bd22b4c3f19f3..69490c94a8f84c3da34791f50cce53923c13ee1e 100644 (file)
@@ -100,12 +100,12 @@ type Peer struct {
        BytesOut        int64
        BytesPayloadIn  int64
        BytesPayloadOut int64
-       FramesIn        int
-       FramesOut       int
-       FramesUnauth    int
-       FramesDup       int
-       HeartbeatRecv   int
-       HeartbeatSent   int
+       FramesIn        uint64
+       FramesOut       uint64
+       FramesUnauth    uint64
+       FramesDup       uint64
+       HeartbeatRecv   uint64
+       HeartbeatSent   uint64
 
        // Receiver
        BusyR    sync.Mutex `json:"-"`