[client] Offer injected ICMPv6 echo replies to packet capture (#6321)

This commit is contained in:
Viktor Liu
2026-06-02 02:38:00 +09:00
committed by GitHub
parent 9189625487
commit e7c9182ff9

View File

@@ -362,6 +362,10 @@ func (f *Forwarder) injectICMPv6Reply(id stack.TransportEndpointID, icmpPayload
return 0
}
if pc := f.endpoint.capture.Load(); pc != nil {
(*pc).Offer(fullPacket, true)
}
return len(fullPacket)
}