From 3e8e2cad881978674737ee3f9ac58b780d172187 Mon Sep 17 00:00:00 2001 From: Ghanan Gowripalan Date: Thu, 4 Mar 2021 11:37:12 -0800 Subject: Make stack.DADResult an interface While I'm here, update NDPDispatcher.OnDuplicateAddressDetectionStatus to take a DADResult and rename it to OnDuplicateAddressDetectionResult. Fixes #5606. PiperOrigin-RevId: 360965416 --- pkg/tcpip/network/arp/arp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/tcpip/network/arp') diff --git a/pkg/tcpip/network/arp/arp.go b/pkg/tcpip/network/arp/arp.go index 3fcdea119..98ded525c 100644 --- a/pkg/tcpip/network/arp/arp.go +++ b/pkg/tcpip/network/arp/arp.go @@ -232,7 +232,7 @@ func (e *endpoint) HandlePacket(pkt *stack.PacketBuffer) { linkAddr := tcpip.LinkAddress(h.HardwareAddressSender()) e.mu.Lock() - e.mu.dad.StopLocked(addr, false /* aborted */) + e.mu.dad.StopLocked(addr, &stack.DADDupAddrDetected{}) e.mu.Unlock() // The solicited, override, and isRouter flags are not available for ARP; -- cgit v1.2.3