Don't inspect the DF flag earlier than we need to

This commit is contained in:
David Wragg committed 2015-06-25 17:11:52 +01:00
1 parent 5690902173
commit 64ac7745fe
3 files changed
+18 -16

No files matched your search

+5
View File
@@ -77,6 +77,11 @@ func (conn *LocalConnection) Forward(df bool, frame *ForwardedFrame, dec *Ethern
conn.Log("Cannot forward frame yet - awaiting contact")
return nil
}
if dec != nil {
df = dec.DF()
}
// We could use non-blocking channel sends here, i.e. drop frames
// on the floor when the forwarder is busy. This would allow our
// caller - the capturing loop in the router - to read frames more