In the Matches function of udpv6probe.go, the condition checking
whether the InnerIPv6 payload length of rpu matches that of spu
was incorrect. The condition should be changed from:
if pr.InnerIPv6().PayloadLen != len(p.Payload) + inet.UDPHeaderLen
to:
if pr.InnerIPv6().PayloadLen != len(p.Payload)
because p.Payload represents the length of the UDP packet, not the
length of the UDP packet's payload.
Fix bug in UDP packet matching in udpv6probe.go
In the Matches function of udpv6probe.go, the condition checking whether the InnerIPv6 payload length of rpu matches that of spu was incorrect. The condition should be changed from:
to:
because p.Payload represents the length of the UDP packet, not the length of the UDP packet's payload.
Signed-off-by: ke zhou zhouk22@mails.tsinghua.edu.cn