This commit is contained in:
David Wragg committed 2015-06-12 16:12:59 +01:00
1 parent 17c8a16757
commit 0f888e9735
10 files changed
+204 -96

No files matched your search

+3 -3
View File
@@ -3,7 +3,7 @@ package router
// Interface to intra-host (i.e. container) packet handling
type IntraHost interface {
// Inject a packet to be delivered locally
InjectPacket([]byte) error
InjectPacket(PacketKey) FlowOp
// Start consuming packets
ConsumePackets(IntraHostConsumer) error
@@ -13,12 +13,12 @@ type IntraHostConsumer interface {
// A locally captured packet. The caller must supply an
// EthernetDecoder specific to this thread, but it should not
// have been used to decode the packet data.
CapturedPacket([]byte, *EthernetDecoder)
CapturedPacket(PacketKey) FlowOp
}
type NullIntraHost struct{}
func (NullIntraHost) InjectPacket([]byte) error {
func (NullIntraHost) InjectPacket(PacketKey) FlowOp {
return nil
}