mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-01 17:49:02 +00:00
go.mod,*: bump gvisor
Updates #9253 Signed-off-by: Andrea Barisani <andrea@inversepath.com> Signed-off-by: James Tucker <james@tailscale.com>
This commit is contained in:
committed by
James Tucker
parent
2c92f94e2a
commit
b5b4298325
@@ -296,9 +296,9 @@ func packLayer2UDP(payload []byte, srcMAC, dstMAC net.HardwareAddr, src, dst net
|
||||
payloadStart := len(buf) - len(payload)
|
||||
copy(buf[payloadStart:], payload)
|
||||
srcB := src.Addr().As4()
|
||||
srcIP := tcpip.Address(srcB[:])
|
||||
srcIP := tcpip.AddrFromSlice(srcB[:])
|
||||
dstB := dst.Addr().As4()
|
||||
dstIP := tcpip.Address(dstB[:])
|
||||
dstIP := tcpip.AddrFromSlice(dstB[:])
|
||||
// Ethernet header
|
||||
eth := header.Ethernet(buf)
|
||||
eth.Encode(&header.EthernetFields{
|
||||
|
||||
@@ -23,7 +23,7 @@ import (
|
||||
"github.com/tailscale/wireguard-go/tun/tuntest"
|
||||
"go4.org/mem"
|
||||
"go4.org/netipx"
|
||||
"gvisor.dev/gvisor/pkg/bufferv2"
|
||||
"gvisor.dev/gvisor/pkg/buffer"
|
||||
"gvisor.dev/gvisor/pkg/tcpip/stack"
|
||||
"tailscale.com/disco"
|
||||
"tailscale.com/net/connstats"
|
||||
@@ -845,12 +845,12 @@ func TestCaptureHook(t *testing.T) {
|
||||
[]byte("Write2"),
|
||||
}, 0)
|
||||
packetBuf := stack.NewPacketBuffer(stack.PacketBufferOptions{
|
||||
Payload: bufferv2.MakeWithData([]byte("InjectInboundPacketBuffer")),
|
||||
Payload: buffer.MakeWithData([]byte("InjectInboundPacketBuffer")),
|
||||
})
|
||||
w.InjectInboundPacketBuffer(packetBuf)
|
||||
|
||||
packetBuf = stack.NewPacketBuffer(stack.PacketBufferOptions{
|
||||
Payload: bufferv2.MakeWithData([]byte("InjectOutboundPacketBuffer")),
|
||||
Payload: buffer.MakeWithData([]byte("InjectOutboundPacketBuffer")),
|
||||
})
|
||||
w.InjectOutboundPacketBuffer(packetBuf)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user