diff options
author | gVisor bot <gvisor-bot@google.com> | 2021-09-09 23:21:49 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-09-09 23:21:49 +0000 |
commit | 0e636a3408aac3cb6d9880a42ee217a48afa199b (patch) | |
tree | f1cf82acf0a07fcc66c4028369f689b9d9ad6e64 /pkg/tcpip/link/waitable | |
parent | 905089a76d1c93f8bcf082a1c4a4eb58fafe9ea4 (diff) | |
parent | 833d933afda03706328ac556d08294a78e372a6a (diff) |
Merge release-20210830.0-29-g833d933af (automated)
Diffstat (limited to 'pkg/tcpip/link/waitable')
-rw-r--r-- | pkg/tcpip/link/waitable/waitable.go | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/pkg/tcpip/link/waitable/waitable.go b/pkg/tcpip/link/waitable/waitable.go index 13900205d..116e4defb 100644 --- a/pkg/tcpip/link/waitable/waitable.go +++ b/pkg/tcpip/link/waitable/waitable.go @@ -59,15 +59,6 @@ func (e *Endpoint) DeliverNetworkPacket(remote, local tcpip.LinkAddress, protoco e.dispatchGate.Leave() } -// DeliverOutboundPacket implements stack.NetworkDispatcher.DeliverOutboundPacket. -func (e *Endpoint) DeliverOutboundPacket(remote, local tcpip.LinkAddress, protocol tcpip.NetworkProtocolNumber, pkt *stack.PacketBuffer) { - if !e.dispatchGate.Enter() { - return - } - e.dispatcher.DeliverOutboundPacket(remote, local, protocol, pkt) - e.dispatchGate.Leave() -} - // Attach implements stack.LinkEndpoint.Attach. It saves the dispatcher and // registers with the lower endpoint as its dispatcher so that "e" is called // for inbound packets. |