Update gvisor to 20260727.0

This commit is contained in:
世界 2026-08-05 08:10:16 +08:00
parent 2d9b8aed5f
commit da24acaf4d
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
5 changed files with 71 additions and 58 deletions

View file

@ -155,9 +155,15 @@ func (f *ICMPForwarder) HandlePacket(id stack.TransportEndpointID, pkt *stack.Pa
} else {
ipHdr := header.IPv6(pkt.NetworkHeader().Slice())
icmpHdr := header.ICMPv6(pkt.TransportHeader().Slice())
if icmpHdr.Type() != header.ICMPv6EchoRequest || icmpHdr.Code() != 0 {
if icmpHdr.Type() != header.ICMPv6EchoRequest {
return false
}
if icmpHdr.Code() != 0 {
// The IPv6 built-in echo reply path lacks the LocalAddressTemporary
// check its IPv4 sibling has, so returning false would make the stack
// reply on behalf of arbitrary forwarded destinations.
return true
}
identifier := icmpHdr.Ident()
key := icmpFlowKey{
v6: true,