Don't inspect the DF flag earlier than we need to
This commit is contained in:
1 parent
5690902173
commit
64ac7745fe
3 files changed
+18
-16
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user