ping: Fix read ICMPv6 from gVisor

This commit is contained in:
世界 2025-08-25 22:19:09 +08:00
parent a8cb01e6df
commit 7de8ff7f20
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
3 changed files with 4 additions and 3 deletions

View file

@ -226,6 +226,7 @@ func (w *ICMPBackWriter) WritePacket(p []byte) error {
packet := stack.NewPacketBuffer(stack.PacketBufferOptions{
Payload: buffer.MakeWithData(p),
})
parse.IPv6(packet)
defer packet.DecRef()
err = route.WritePacketDirect(packet)
if err != nil {