summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/link/loopback
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2019-09-07 01:10:45 +0000
committergVisor bot <gvisor-bot@google.com>2019-09-07 01:10:45 +0000
commit23a1fde981f1c390df5e6536566149f89a3b37fd (patch)
tree14f09dc0e39e84c0d47ec17c4525046acd2d9e31 /pkg/tcpip/link/loopback
parentc84161e6acb9a7a04fa0a7eecb15d5143c0283ba (diff)
parentfe1f5210774d015d653df164d6f676658863780c (diff)
Merge fe1f5210 (automated)
Diffstat (limited to 'pkg/tcpip/link/loopback')
-rw-r--r--pkg/tcpip/link/loopback/loopback.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/tcpip/link/loopback/loopback.go b/pkg/tcpip/link/loopback/loopback.go
index ab6a53988..e121ea1a5 100644
--- a/pkg/tcpip/link/loopback/loopback.go
+++ b/pkg/tcpip/link/loopback/loopback.go
@@ -32,8 +32,8 @@ type endpoint struct {
// New creates a new loopback endpoint. This link-layer endpoint just turns
// outbound packets into inbound packets.
-func New() tcpip.LinkEndpointID {
- return stack.RegisterLinkEndpoint(&endpoint{})
+func New() stack.LinkEndpoint {
+ return &endpoint{}
}
// Attach implements stack.LinkEndpoint.Attach. It just saves the stack network-