summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/link
diff options
context:
space:
mode:
authorIan Gudger <igudger@google.com>2019-08-12 13:29:47 -0700
committergVisor bot <gvisor-bot@google.com>2019-08-12 13:31:16 -0700
commiteac690e358e25897bb878fdfd1ad7036054162e2 (patch)
tree1a3285f4917669a84a4175b8db756d7b9048b1dd /pkg/tcpip/link
parentaf90e68623c729d0e3b06a1e838c5584d2d8b7c2 (diff)
Fix netstack build error on non-AMD64.
This stub had the wrong function signature. PiperOrigin-RevId: 262992682
Diffstat (limited to 'pkg/tcpip/link')
-rw-r--r--pkg/tcpip/link/fdbased/mmap.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/pkg/tcpip/link/fdbased/mmap.go b/pkg/tcpip/link/fdbased/mmap.go
index fe19c2bc2..2dca173c2 100644
--- a/pkg/tcpip/link/fdbased/mmap.go
+++ b/pkg/tcpip/link/fdbased/mmap.go
@@ -16,10 +16,8 @@
package fdbased
-import "gvisor.dev/gvisor/pkg/tcpip"
-
// Stubbed out version for non-linux/non-amd64 platforms.
-func newPacketMMapDispatcher(fd int, e *endpoint) (linkDispatcher, *tcpip.Error) {
+func newPacketMMapDispatcher(fd int, e *endpoint) (linkDispatcher, error) {
return nil, nil
}