summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/stack
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-10-14 22:33:03 +0000
committergVisor bot <gvisor-bot@google.com>2020-10-14 22:33:03 +0000
commit6057fda8785ff7922476769ffa30d25d6544f201 (patch)
tree507facc094c12b327af686648b971968f9020915 /pkg/tcpip/stack
parente7a68d4af9b37a30307c3ff1352afacf403439b6 (diff)
parent6e6a9d3f3dd6dd9ce290952406ba7ca7c5570311 (diff)
Merge release-20200928.0-117-g6e6a9d3f3 (automated)
Diffstat (limited to 'pkg/tcpip/stack')
-rw-r--r--pkg/tcpip/stack/route.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/tcpip/stack/route.go b/pkg/tcpip/stack/route.go
index 25f80c1f8..b76e2d37b 100644
--- a/pkg/tcpip/stack/route.go
+++ b/pkg/tcpip/stack/route.go
@@ -126,6 +126,12 @@ func (r *Route) GSOMaxSize() uint32 {
return 0
}
+// ResolveWith immediately resolves a route with the specified remote link
+// address.
+func (r *Route) ResolveWith(addr tcpip.LinkAddress) {
+ r.RemoteLinkAddress = addr
+}
+
// Resolve attempts to resolve the link address if necessary. Returns ErrWouldBlock in
// case address resolution requires blocking, e.g. wait for ARP reply. Waker is
// notified when address resolution is complete (success or not).