capture

package
v0.0.0-...-9ccf629 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunCapture

func RunCapture(iface string, handshakeCallback func(*TcpHandshake))

RunCapture captures TCP packets and prints the 3-way-handshake state

Types

type TcpHandshake

type TcpHandshake struct {
	ClientIP   string
	ClientPort string
	ServerIP   string
	ServerPort string
	SYN        bool
	SYNACK     bool
	ACK        bool
	Events     []string
	Start      time.Time
	SynSeq     uint32
	SynAckSeq  uint32
	SynAckAck  uint32
	AckAck     uint32
}

TcpHandshake represents a TCP 3-way-handshake state

Jump to

Keyboard shortcuts

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