diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-02-24 18:35:21 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-02-24 18:35:21 +0000 |
commit | 137f1d92f4dcc5e1dd3430c714b503209cec5beb (patch) | |
tree | a469326ec9a0be502a19b1d3233074d9c21ee276 /pkg/tcpip/transport/packet | |
parent | c9bfc173aa5b829cb52b25008a9550d3469c86e8 (diff) | |
parent | c37b196455e8b3816298e3eea98e4ee2dab8d368 (diff) |
Merge release-20200219.0-27-gc37b196 (automated)
Diffstat (limited to 'pkg/tcpip/transport/packet')
-rwxr-xr-x | pkg/tcpip/transport/packet/endpoint.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/tcpip/transport/packet/endpoint.go b/pkg/tcpip/transport/packet/endpoint.go index fc5bc69fa..5722815e9 100755 --- a/pkg/tcpip/transport/packet/endpoint.go +++ b/pkg/tcpip/transport/packet/endpoint.go @@ -98,6 +98,11 @@ func NewEndpoint(s *stack.Stack, cooked bool, netProto tcpip.NetworkProtocolNumb return ep, nil } +// Abort implements stack.TransportEndpoint.Abort. +func (e *endpoint) Abort() { + e.Close() +} + // Close implements tcpip.Endpoint.Close. func (ep *endpoint) Close() { ep.mu.Lock() |