diff options
author | gVisor bot <gvisor-bot@google.com> | 2019-08-01 03:39:02 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-08-01 03:39:02 +0000 |
commit | 3d89ab8d2a232f8a72c0ace4c37a638b0e9b6f9a (patch) | |
tree | b8cdbc24241359180dd8426f760d0965c2ee1317 /pkg/sentry/inet/test_stack.go | |
parent | 5646a1d4eba6b6db7ec64aa8d7ca2fa43a7ea9cd (diff) | |
parent | 0a246fab80581351309cdfe39ffeeffa00f811b1 (diff) |
Merge 0a246fab (automated)
Diffstat (limited to 'pkg/sentry/inet/test_stack.go')
-rw-r--r-- | pkg/sentry/inet/test_stack.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/sentry/inet/test_stack.go b/pkg/sentry/inet/test_stack.go index 75f9e7a77..57d5510f0 100644 --- a/pkg/sentry/inet/test_stack.go +++ b/pkg/sentry/inet/test_stack.go @@ -18,6 +18,7 @@ package inet type TestStack struct { InterfacesMap map[int32]Interface InterfaceAddrsMap map[int32][]InterfaceAddr + RouteList []Route SupportsIPv6Flag bool TCPRecvBufSize TCPBufferSize TCPSendBufSize TCPBufferSize @@ -86,3 +87,8 @@ func (s *TestStack) SetTCPSACKEnabled(enabled bool) error { func (s *TestStack) Statistics(stat interface{}, arg string) error { return nil } + +// RouteTable implements Stack.RouteTable. +func (s *TestStack) RouteTable() []Route { + return s.RouteList +} |