mirror of
https://github.com/soypat/lneto.git
synced 2026-09-10 16:49:37 +00:00
reset xnet statistics
This commit is contained in:
@@ -152,6 +152,8 @@ func (s *StackAsync) Reset(cfg StackConfig) error {
|
|||||||
if s.clientID == "" {
|
if s.clientID == "" {
|
||||||
s.clientID = "lneto-" + s.hostname
|
s.clientID = "lneto-" + s.hostname
|
||||||
}
|
}
|
||||||
|
s.totalrecv = 0
|
||||||
|
s.totalsent = 0
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -412,7 +414,9 @@ func (s *StackAsync) ResultDHCP() (*DHCPResults, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type Statistics struct {
|
type Statistics struct {
|
||||||
TotalSent uint64
|
// Total amount of bytes sent over encapsulate.
|
||||||
|
TotalSent uint64
|
||||||
|
// Total amount of bytes received over demux.
|
||||||
TotalReceived uint64
|
TotalReceived uint64
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user