packetAnalyzer

package
v0.0.0-...-4f1dd47 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlowMeter

func FlowMeter(ctx context.Context, ch chan gopacket.Packet, cancel context.CancelFunc, maxNumPackets int, localIP string, ifLocalIPKnown bool, fname string) error

This go routine communicates through channels and computes flow stats

func GetOutboundIP

func GetOutboundIP() net.IP

GetOutboundIP: Get preferred outbound ip of this machine.

func PacketInfo

func PacketInfo(packet gopacket.Packet, decoded []gopacket.LayerType, ip4 *layers.IPv4, ip6 *layers.IPv6, tcp *layers.TCP, udp *layers.UDP) (string, string, int, time.Time)

Function to get information from packet layers.

func Reverse5Tuple

func Reverse5Tuple(fTuple string) string

Reverse a 5 tuple.

Types

This section is empty.

Jump to

Keyboard shortcuts

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