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

This commit is contained in:
David Wragg committed 2015-06-12 16:12:58 +01:00
1 parent ef0153cb0f
commit f8ed319428
3 files changed
+18 -16

No files matched your search

+5
View File
@@ -76,6 +76,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