Injected packets shouldn't happen in handleCapturedPacket
Check for them just in case, but don't take an extra lock to do it.
This commit is contained in:
1 parent
20b35f3139
commit
f7ce6a1fdb
3 files changed
+36
-17
No files matched your search
+2
-1
@@ -5,7 +5,8 @@ type Bridge interface {
|
||||
// Inject a packet to be delivered locally
|
||||
InjectPacket(PacketKey) FlowOp
|
||||
|
||||
// Start consuming packets from the bridge
|
||||
// Start consuming packets from the bridge. Injected packets
|
||||
// should not be included.
|
||||
StartConsumingPackets(BridgeConsumer) error
|
||||
|
||||
String() string
|
||||
|
||||
Reference in new issue
Block a user