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:
David Wragg committed 2015-09-08 10:46:04 +01:00
1 parent 20b35f3139
commit f7ce6a1fdb
3 files changed
+36 -17

No files matched your search

+2 -1
View File
@@ -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