tcp

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2015 License: GPL-2.0 Imports: 9 Imported by: 0

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 ConfigToFilter

func ConfigToFilter(protocols map[string]config.Protocol) string

func FollowTcp

func FollowTcp(tcphdr *layers.TCP, pkt *protos.Packet)

func GetId

func GetId() uint32

func PrintTcpMap

func PrintTcpMap()

func TcpInit

func TcpInit(protocols map[string]config.Protocol) error

func TcpSeqBefore

func TcpSeqBefore(seq1 uint32, seq2 uint32) bool

func TcpSeqBeforeEq

func TcpSeqBeforeEq(seq1 uint32, seq2 uint32) bool

Types

type DecoderStruct

type DecoderStruct struct {
	Parser *gopacket.DecodingLayerParser
	// contains filtered or unexported fields
}

func CreateDecoder

func CreateDecoder(datalink layers.LinkType) (*DecoderStruct, error)

func (*DecoderStruct) DecodePacketData

func (decoder *DecoderStruct) DecodePacketData(data []byte, ci *gopacket.CaptureInfo)

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)

Jump to

Keyboard shortcuts

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