stream

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL