From 7ac4d556c216daad5fc669a5775342f4f69c1a1a Mon Sep 17 00:00:00 2001 From: Patricio Whittingslow Date: Wed, 22 Oct 2025 23:55:09 -0300 Subject: [PATCH] reset xnet statistics --- x/xnet/stack-async.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/x/xnet/stack-async.go b/x/xnet/stack-async.go index 7193d1f..55ae55a 100644 --- a/x/xnet/stack-async.go +++ b/x/xnet/stack-async.go @@ -152,6 +152,8 @@ func (s *StackAsync) Reset(cfg StackConfig) error { if s.clientID == "" { s.clientID = "lneto-" + s.hostname } + s.totalrecv = 0 + s.totalsent = 0 return nil } @@ -412,7 +414,9 @@ func (s *StackAsync) ResultDHCP() (*DHCPResults, error) { } type Statistics struct { - TotalSent uint64 + // Total amount of bytes sent over encapsulate. + TotalSent uint64 + // Total amount of bytes received over demux. TotalReceived uint64 }