Forward a packet with sleeve if the source or dest peer lacks a short ID

This commit is contained in:
David Wragg committed 2015-10-14 13:53:59 +01:00
1 parent e702234fdc
commit 35141a4aef
3 files changed
+43 -25

No files matched your search

+4
View File
@@ -754,6 +754,10 @@ func (fwd *fastDatapathForwarder) handleHeartbeatAck() {
}
func (fwd *fastDatapathForwarder) Forward(key ForwardPacketKey) FlowOp {
if !key.SrcPeer.HasShortID || !key.DstPeer.HasShortID {
return nil
}
fwd.lock.RLock()
defer fwd.lock.RUnlock()