Browse Source

Fix: rwbased interface implementation

pull/76/head
xjasonlyu 3 years ago
parent
commit
c478adee34
  1. 4
      core/device/rwbased/endpoint.go

4
core/device/rwbased/endpoint.go

@ -106,6 +106,10 @@ func (e *Endpoint) WritePackets(_ stack.RouteInfo, pkts stack.PacketBufferList,
return n, nil return n, nil
} }
func (e *Endpoint) WriteRawPacket(packetBuffer *stack.PacketBuffer) tcpip.Error {
return &tcpip.ErrNotSupported{}
}
// MTU implements stack.LinkEndpoint.MTU. // MTU implements stack.LinkEndpoint.MTU.
func (e *Endpoint) MTU() uint32 { func (e *Endpoint) MTU() uint32 {
return e.mtu return e.mtu

Loading…
Cancel
Save