Documentation ¶
Overview ¶
Package stream builds a simple TCP forwarder using tcpassembly.StreamFactory and tcpassembly.Stream interfaces.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TcpStream ¶
type TcpStream struct {
// contains filtered or unexported fields
}
TcpStream will handle the actual forwarding of copied tcp streams.
func (*TcpStream) Reassembled ¶ added in v0.3.2
func (t *TcpStream) Reassembled(reassembly []tcpassembly.Reassembly)
Reassembled implements tcpassembly.Stream's Reassembled function.
func (*TcpStream) ReassemblyComplete ¶ added in v0.3.2
func (t *TcpStream) ReassemblyComplete()
ReassemblyComplete implements tcpassembly.Stream's ReassemblyComplete function.
type TcpStreamFactory ¶
type TcpStreamFactory struct { Address string // the Address which the copied stream is forwarded to Duration time.Duration // how long time waiting for the response from Address }
TcpStreamFactory implements tcpassembly.StreamFactory.
func (*TcpStreamFactory) New ¶
func (h *TcpStreamFactory) New(netFlow, transportFlow gopacket.Flow) tcpassembly.Stream
Click to show internal directories.
Click to hide internal directories.