Skip to content

Commit 62cf83e

Browse files
committed
go.mod: bump gvisor
The `stack.PacketBufferPtr` type no longer exists; replace it with `*stack.PacketBuffer` instead. Updates tailscale#8043 Signed-off-by: Andrew Dunham <andrew@du.nham.ca> Change-Id: Ib56ceff09166a042aa3d9b80f50b2aa2d34b3683
1 parent 8f27d51 commit 62cf83e

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,14 @@ require (
9393
golang.org/x/net v0.20.0
9494
golang.org/x/oauth2 v0.16.0
9595
golang.org/x/sync v0.6.0
96-
golang.org/x/sys v0.16.0
96+
golang.org/x/sys v0.17.0
9797
golang.org/x/term v0.16.0
9898
golang.org/x/time v0.5.0
9999
golang.org/x/tools v0.17.0
100100
golang.zx2c4.com/wintun v0.0.0-20230126152724-0fa3db229ce2
101101
golang.zx2c4.com/wireguard/windows v0.5.3
102102
gopkg.in/square/go-jose.v2 v2.6.0
103-
gvisor.dev/gvisor v0.0.0-20240119233241-c9c1d4f9b186
103+
gvisor.dev/gvisor v0.0.0-20240306221502-ee1e1f6070e3
104104
honnef.co/go/tools v0.4.6
105105
k8s.io/api v0.29.1
106106
k8s.io/apimachinery v0.29.1

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1174,8 +1174,8 @@ golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
11741174
golang.org/x/sys v0.4.1-0.20230131160137-e7d7f63158de/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
11751175
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
11761176
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
1177-
golang.org/x/sys v0.16.0 h1:xWw16ngr6ZMtmxDyKyIgsE93KNKz5HKmMa3b8ALHidU=
1178-
golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
1177+
golang.org/x/sys v0.17.0 h1:25cE3gD+tdBA7lp7QfhuV+rJiE9YXTcS3VG1SqssI/Y=
1178+
golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
11791179
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
11801180
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
11811181
golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
@@ -1417,8 +1417,8 @@ gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
14171417
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
14181418
gotest.tools/v3 v3.4.0 h1:ZazjZUfuVeZGLAmlKKuyv3IKP5orXcwtOwDQH6YVr6o=
14191419
gotest.tools/v3 v3.4.0/go.mod h1:CtbdzLSsqVhDgMtKsx03ird5YTGB3ar27v0u/yKBW5g=
1420-
gvisor.dev/gvisor v0.0.0-20240119233241-c9c1d4f9b186 h1:VWRSJX9ghfqsRSZGMAILL6QpYRKWnHcYPi24SCubQRs=
1421-
gvisor.dev/gvisor v0.0.0-20240119233241-c9c1d4f9b186/go.mod h1:10sU+Uh5KKNv1+2x2A0Gvzt8FjD3ASIhorV3YsauXhk=
1420+
gvisor.dev/gvisor v0.0.0-20240306221502-ee1e1f6070e3 h1:/8/t5pz/mgdRXhYOIeqqYhFAQLE4DDGegc0Y4ZjyFJM=
1421+
gvisor.dev/gvisor v0.0.0-20240306221502-ee1e1f6070e3/go.mod h1:NQHVAzMwvZ+Qe3ElSiHmq9RUm1MdNHpUZ52fiEqvn+0=
14221422
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
14231423
honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
14241424
honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=

net/tstun/wrap.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ type Wrapper struct {
203203
type tunInjectedRead struct {
204204
// Only one of packet or data should be set, and are read in that order of
205205
// precedence.
206-
packet stack.PacketBufferPtr
206+
packet *stack.PacketBuffer
207207
data []byte
208208
}
209209

@@ -1113,7 +1113,7 @@ func (t *Wrapper) SetFilter(filt *filter.Filter) {
11131113
//
11141114
// This path is typically used to deliver synthesized packets to the
11151115
// host networking stack.
1116-
func (t *Wrapper) InjectInboundPacketBuffer(pkt stack.PacketBufferPtr) error {
1116+
func (t *Wrapper) InjectInboundPacketBuffer(pkt *stack.PacketBuffer) error {
11171117
buf := make([]byte, PacketStartOffset+pkt.Size())
11181118

11191119
n := copy(buf[PacketStartOffset:], pkt.NetworkHeader().Slice())
@@ -1221,7 +1221,7 @@ func (t *Wrapper) InjectOutbound(pkt []byte) error {
12211221
// InjectOutboundPacketBuffer logically behaves as InjectOutbound. It takes ownership of one
12221222
// reference count on the packet, and the packet may be mutated. The packet refcount will be
12231223
// decremented after the injected buffer has been read.
1224-
func (t *Wrapper) InjectOutboundPacketBuffer(pkt stack.PacketBufferPtr) error {
1224+
func (t *Wrapper) InjectOutboundPacketBuffer(pkt *stack.PacketBuffer) error {
12251225
size := pkt.Size()
12261226
if size > MaxPacketSize {
12271227
pkt.DecRef()

wgengine/netstack/netstack.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -357,11 +357,11 @@ func init() {
357357
})
358358
}
359359

360-
type protocolHandlerFunc func(stack.TransportEndpointID, stack.PacketBufferPtr) bool
360+
type protocolHandlerFunc func(stack.TransportEndpointID, *stack.PacketBuffer) bool
361361

362362
// wrapUDPProtocolHandler wraps the protocol handler we pass to netstack for UDP.
363363
func (ns *Impl) wrapUDPProtocolHandler(h protocolHandlerFunc) protocolHandlerFunc {
364-
return func(tei stack.TransportEndpointID, pb stack.PacketBufferPtr) bool {
364+
return func(tei stack.TransportEndpointID, pb *stack.PacketBuffer) bool {
365365
addr := tei.LocalAddress
366366
ip, ok := netip.AddrFromSlice(addr.AsSlice())
367367
if !ok {
@@ -390,7 +390,7 @@ func (ns *Impl) wrapTCPProtocolHandler(h protocolHandlerFunc) protocolHandlerFun
390390
// passes through our acceptTCP handler/etc. If false, then the packet
391391
// is dropped and the TCP connection is rejected (typically with an
392392
// ICMP Port Unreachable or ICMP Protocol Unreachable message).
393-
return func(tei stack.TransportEndpointID, pb stack.PacketBufferPtr) (handled bool) {
393+
return func(tei stack.TransportEndpointID, pb *stack.PacketBuffer) (handled bool) {
394394
localIP, ok := netip.AddrFromSlice(tei.LocalAddress.AsSlice())
395395
if !ok {
396396
ns.logf("netstack: could not parse local address for incoming connection")

0 commit comments

Comments
 (0)