From 1b140e3aa93ea246119c6c959c36f850f9ae73ed Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Thu, 18 Dec 2014 17:39:01 +0000 Subject: [PATCH] don't enter src MACs of forwarded packets in our cache There is no point, and it populates the cache with entries we don't need. Local containers will still need to issue an ARP request when they first talk to an IP corresponding to the MAC, so we learn about the MAC at that point, just as normally happens. --- router/router.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/router/router.go b/router/router.go index 5d29ff70..cb97d095 100644 --- a/router/router.go +++ b/router/router.go @@ -247,9 +247,6 @@ func (router *Router) handleUDPPacketFunc(dec *EthernetDecoder, po PacketSink) F if decodedLen == 0 { return nil } - if router.Macs.Enter(srcMac, srcPeer) { - log.Println("Discovered remote MAC", srcMac, "at", srcPeer.Name) - } if df { router.LogFrame("Relaying DF", frame, &dec.eth) } else {