diff options
author | Jianfeng Tan <henry.tjf@antfin.com> | 2019-07-15 22:49:58 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-07-15 22:51:05 -0700 |
commit | cf4fc510fd80c5a23e271db677a8721385c45a4d (patch) | |
tree | 3e2323d440ddc24ae3eca3d449cc2cd820c38768 /pkg/sentry/inet/test_stack.go | |
parent | 6a8ff6daefc670455f40326afd53b51b632a32dc (diff) |
Support /proc/net/dev
This proc file reports the stats of interfaces. We could use ifconfig
command to check the result.
Signed-off-by: Jianfeng Tan <henry.tjf@antfin.com>
Change-Id: Ia7c1e637f5c76c30791ffda68ee61e861b6ef827
COPYBARA_INTEGRATE_REVIEW=https://gvisor-review.googlesource.com/c/gvisor/+/18282/
PiperOrigin-RevId: 258303936
Diffstat (limited to 'pkg/sentry/inet/test_stack.go')
-rw-r--r-- | pkg/sentry/inet/test_stack.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/sentry/inet/test_stack.go b/pkg/sentry/inet/test_stack.go index 624371eb6..75f9e7a77 100644 --- a/pkg/sentry/inet/test_stack.go +++ b/pkg/sentry/inet/test_stack.go @@ -81,3 +81,8 @@ func (s *TestStack) SetTCPSACKEnabled(enabled bool) error { s.TCPSACKFlag = enabled return nil } + +// Statistics implements inet.Stack.Statistics. +func (s *TestStack) Statistics(stat interface{}, arg string) error { + return nil +} |