From 587a67d7015002b82fbd621fed7a085e96762976 Mon Sep 17 00:00:00 2001 From: David Wragg Date: Thu, 2 Apr 2015 16:37:16 +0100 Subject: [PATCH] Comment It's not blindingly obvious where this 'found' comes from. --- router/router.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/router/router.go b/router/router.go index 975c06a4..c38b0477 100644 --- a/router/router.go +++ b/router/router.go @@ -164,10 +164,13 @@ func (router *Router) handleCapturedPacket(frameData []byte, dec *EthernetDecode frameCopy := make([]byte, frameLen, frameLen) copy(frameCopy, frameData) + // If we don't know which peer corresponds to the dest MAC, + // broadcast it. if !found { router.Ourself.Broadcast(df, frameCopy, dec) return } + err := router.Ourself.Forward(dstPeer, df, frameCopy, dec) if ftbe, ok := err.(FrameTooBigError); ok { err = dec.sendICMPFragNeeded(ftbe.EPMTU, po.WritePacket)