diff options
author | gVisor bot <gvisor-bot@google.com> | 2019-09-03 23:08:57 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-09-03 23:08:57 +0000 |
commit | a05663cb55f7472ca024de73eb193584dd4075b3 (patch) | |
tree | ea939025874efd284f635e457d8e009592f7bf2f /pkg/tcpip/stack/route.go | |
parent | 16f962006721dc0cb7896c5ff3f2c5e1194e6115 (diff) | |
parent | 3789c34b22e7a7466149bfbeedf05bf49188130c (diff) |
Merge 3789c34b (automated)
Diffstat (limited to 'pkg/tcpip/stack/route.go')
-rw-r--r-- | pkg/tcpip/stack/route.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/tcpip/stack/route.go b/pkg/tcpip/stack/route.go index e52cdd674..5c8b7977a 100644 --- a/pkg/tcpip/stack/route.go +++ b/pkg/tcpip/stack/route.go @@ -217,3 +217,8 @@ func (r *Route) MakeLoopedRoute() Route { } return l } + +// Stack returns the instance of the Stack that owns this route. +func (r *Route) Stack() *Stack { + return r.ref.stack() +} |