summaryrefslogtreecommitdiffhomepage
path: root/tun/netstack/tun.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-05-06 11:03:04 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2021-05-06 11:07:26 +0200
commita544776d703df47974fe83e6a63e91c3ffc62500 (patch)
tree2737ae936cbb58ba82fba3357a7780bce5fc2cac /tun/netstack/tun.go
parent69a42a4eefc78c2a2e36842fcb26d906101cdae0 (diff)
tun/netstack: update go mod and remove GSO argument
Reported-by: John Xiong <xiaoyang1258@yeah.net> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'tun/netstack/tun.go')
-rw-r--r--tun/netstack/tun.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tun/netstack/tun.go b/tun/netstack/tun.go
index 4846e2f..9d2e90a 100644
--- a/tun/netstack/tun.go
+++ b/tun/netstack/tun.go
@@ -74,12 +74,12 @@ func (*endpoint) LinkAddress() tcpip.LinkAddress {
func (*endpoint) Wait() {}
-func (e *endpoint) WritePacket(_ stack.RouteInfo, _ *stack.GSO, _ tcpip.NetworkProtocolNumber, pkt *stack.PacketBuffer) tcpip.Error {
+func (e *endpoint) WritePacket(_ stack.RouteInfo, _ tcpip.NetworkProtocolNumber, pkt *stack.PacketBuffer) tcpip.Error {
e.incomingPacket <- buffer.NewVectorisedView(pkt.Size(), pkt.Views())
return nil
}
-func (e *endpoint) WritePackets(stack.RouteInfo, *stack.GSO, stack.PacketBufferList, tcpip.NetworkProtocolNumber) (int, tcpip.Error) {
+func (e *endpoint) WritePackets(stack.RouteInfo, stack.PacketBufferList, tcpip.NetworkProtocolNumber) (int, tcpip.Error) {
panic("not implemented")
}