tcp

package
v1.0.0-beta3 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2015 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	TcpDirectionReverse  = 0
	TcpDirectionOriginal = 1
)
View Source
const TCP_MAX_DATA_IN_STREAM = 10 * 1e6
View Source
const TCP_STREAM_EXPIRY = 10 * 1e9
View Source
const TCP_STREAM_HASH_SIZE = 2 ^ 16

Variables

This section is empty.

Functions

func TcpSeqBefore

func TcpSeqBefore(seq1 uint32, seq2 uint32) bool

func TcpSeqBeforeEq

func TcpSeqBeforeEq(seq1 uint32, seq2 uint32) bool

Types

type Processor added in v1.0.0

type Processor interface {
	Process(tcphdr *layers.TCP, pkt *protos.Packet)
}

type Tcp added in v1.0.0

type Tcp struct {
	// contains filtered or unexported fields
}

func NewTcp added in v1.0.0

func NewTcp(p protos.Protocols) (*Tcp, error)

Creates and returns a new Tcp.

func (*Tcp) PrintTcpMap

func (tcp *Tcp) PrintTcpMap()

func (*Tcp) Process added in v1.0.0

func (tcp *Tcp) Process(tcphdr *layers.TCP, pkt *protos.Packet)

type TcpStream

type TcpStream struct {

	// protocols private data
	Data protos.ProtocolData
	// contains filtered or unexported fields
}

func (*TcpStream) AddPacket

func (stream *TcpStream) AddPacket(pkt *protos.Packet, tcphdr *layers.TCP, original_dir uint8)

func (*TcpStream) Expire

func (stream *TcpStream) Expire()

func (*TcpStream) GapInStream

func (stream *TcpStream) GapInStream(original_dir uint8, nbytes int) (drop bool)

Jump to

Keyboard shortcuts

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