From c478adee349e586587e94411488d3067a468eb74 Mon Sep 17 00:00:00 2001 From: xjasonlyu Date: Sat, 4 Sep 2021 21:46:40 +0800 Subject: [PATCH] Fix: rwbased interface implementation --- core/device/rwbased/endpoint.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/device/rwbased/endpoint.go b/core/device/rwbased/endpoint.go index b95fdd0..c9e4373 100755 --- a/core/device/rwbased/endpoint.go +++ b/core/device/rwbased/endpoint.go @@ -106,6 +106,10 @@ func (e *Endpoint) WritePackets(_ stack.RouteInfo, pkts stack.PacketBufferList, return n, nil } +func (e *Endpoint) WriteRawPacket(packetBuffer *stack.PacketBuffer) tcpip.Error { + return &tcpip.ErrNotSupported{} +} + // MTU implements stack.LinkEndpoint.MTU. func (e *Endpoint) MTU() uint32 { return e.mtu