From fbf020d6a0258275a68573032bea225a1f5396ab Mon Sep 17 00:00:00 2001 From: Ghanan Gowripalan Date: Fri, 27 Aug 2021 11:12:08 -0700 Subject: Add LinkEndpoint.WriteRawPacket with stubs ...returning unsupported errors. PiperOrigin-RevId: 393388991 --- pkg/tcpip/link/loopback/loopback.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pkg/tcpip/link/loopback/loopback.go') diff --git a/pkg/tcpip/link/loopback/loopback.go b/pkg/tcpip/link/loopback/loopback.go index 7012d8829..d7bbfa639 100644 --- a/pkg/tcpip/link/loopback/loopback.go +++ b/pkg/tcpip/link/loopback/loopback.go @@ -103,3 +103,6 @@ func (*endpoint) ARPHardwareType() header.ARPHardwareType { func (e *endpoint) AddHeader(local, remote tcpip.LinkAddress, protocol tcpip.NetworkProtocolNumber, pkt *stack.PacketBuffer) { } + +// WriteRawPacket implements stack.LinkEndpoint. +func (*endpoint) WriteRawPacket(*stack.PacketBuffer) tcpip.Error { return &tcpip.ErrNotSupported{} } -- cgit v1.2.3