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.
This commit is contained in:
Matthias Radestock committed 2014-12-18 17:39:01 +00:00
1 parent 867683ad05
commit 1b140e3aa9
1 file changed
-3
-3
View File
@@ -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 {