ping: Fix read ICMPv6 from gVisor
This commit is contained in:
parent
a8cb01e6df
commit
7de8ff7f20
3 changed files with 4 additions and 3 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue