Merge release-20210125.0-26-g71623e406 (automated)

This commit is contained in:
gVisor bot 2021-01-29 16:51:47 +00:00
commit 8d715bf4ef
1 changed files with 11 additions and 0 deletions

View File

@ -445,6 +445,17 @@ func (e *endpoint) handleICMP(pkt *stack.PacketBuffer, hasFragmentHeader bool) {
return
}
// As per RFC 4861 section 7.1.2:
// A node MUST silently discard any received Neighbor Advertisement
// messages that do not satisfy all of the following validity checks:
// ...
// - If the IP Destination Address is a multicast address the
// Solicited flag is zero.
if header.IsV6MulticastAddress(dstAddr) && na.SolicitedFlag() {
received.invalid.Increment()
return
}
// If the NA message has the target link layer option, update the link
// address cache with the link address for the target of the message.
if e.nud == nil {