L2: add ndp responders when the address is v6 only
A regression introduced by
we were adding records to
the keepNDP map regardless of the fact that a v6 address was present on
the interface.
Here we enforce the if checking that the ip is not v4.
@@ -95,7 +95,7 @@ func (a *Announce) updateInterfaces() {
if ipaddr.IP.To4() != nil && (ifi.Flags&net.FlagBroadcast) != 0 {
keepARP[ifi.Index] = true
}
- if ipaddr.IP.IsLinkLocalUnicast() {
+ if ipaddr.IP.To4() == nil && ipaddr.IP.IsLinkLocalUnicast() {
keepNDP[ifi.Index] = true
}
}
