mirror of
https://github.com/soypat/lneto.git
synced 2026-08-13 11:23:42 +00:00
reset xnet statistics
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user