sniff

package
v0.0.0-...-fa4da4d Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SeqLocalAddr []net.IP

Functions

func IsLocalAddr

func IsLocalAddr(ip net.IP) bool

func PrasePacket

func PrasePacket(packet gopacket.Packet) (srcAddr net.IP, dstAddr net.IP, tcp layers.TCP, payload gopacket.Payload, err error)

func PrasePacketToString

func PrasePacketToString(packet gopacket.Packet) string

func SniffNewSocket

func SniffNewSocket(port uint16, ch chan<- string, done <-chan struct{}) error

func SniffSocket

func SniffSocket(srcAddr string, srcPort uint16, dstAddr string, dstPort uint16, ch chan<- string, done <-chan struct{}) error

func TcpOptionToString

func TcpOptionToString(op layers.TCPOption) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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