summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/link/pipe/pipe.go
diff options
context:
space:
mode:
authorBruno Dal Bo <brunodalbo@google.com>2020-11-18 07:03:02 -0800
committergVisor bot <gvisor-bot@google.com>2020-11-18 07:05:59 -0800
commit9d148627f82f4325b499e023c5cbf8afd5f988f6 (patch)
tree9264d8eafd9dfed693e9fd4cb683839bc3529fae /pkg/tcpip/link/pipe/pipe.go
parenta5e3fd1b29e14083cd558def8c0f7f283a33fa9e (diff)
Introduce stack.WritePacketToRemote, remove LinkEndpoint.WriteRawPacket
Redefine stack.WritePacket into stack.WritePacketToRemote which lets the NIC decide whether to append link headers. PiperOrigin-RevId: 343071742
Diffstat (limited to 'pkg/tcpip/link/pipe/pipe.go')
-rw-r--r--pkg/tcpip/link/pipe/pipe.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/pkg/tcpip/link/pipe/pipe.go b/pkg/tcpip/link/pipe/pipe.go
index 523b0d24b..71fcb73e1 100644
--- a/pkg/tcpip/link/pipe/pipe.go
+++ b/pkg/tcpip/link/pipe/pipe.go
@@ -67,11 +67,6 @@ func (*Endpoint) WritePackets(*stack.Route, *stack.GSO, stack.PacketBufferList,
panic("not implemented")
}
-// WriteRawPacket implements stack.LinkEndpoint.
-func (*Endpoint) WriteRawPacket(buffer.VectorisedView) *tcpip.Error {
- panic("not implemented")
-}
-
// Attach implements stack.LinkEndpoint.
func (e *Endpoint) Attach(dispatcher stack.NetworkDispatcher) {
e.dispatcher = dispatcher