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/channel/channel.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pkg/tcpip/link/channel') diff --git a/pkg/tcpip/link/channel/channel.go b/pkg/tcpip/link/channel/channel.go index f26c857eb..d02eea93c 100644 --- a/pkg/tcpip/link/channel/channel.go +++ b/pkg/tcpip/link/channel/channel.go @@ -290,3 +290,6 @@ func (*Endpoint) ARPHardwareType() header.ARPHardwareType { // AddHeader implements stack.LinkEndpoint.AddHeader. func (*Endpoint) AddHeader(tcpip.LinkAddress, tcpip.LinkAddress, tcpip.NetworkProtocolNumber, *stack.PacketBuffer) { } + +// WriteRawPacket implements stack.LinkEndpoint. +func (*Endpoint) WriteRawPacket(*stack.PacketBuffer) tcpip.Error { return &tcpip.ErrNotSupported{} } -- cgit v1.2.3