pcapmetadata

package
v0.0.0-...-751e0fc Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPcapMetadata

func AddPcapMetadata(md *gopacket.CaptureInfo, info *PcapInfo, packetIndex uint64)

Types

type PcapInfo

type PcapInfo struct {
	Filename           string
	Filesize           uint64
	PacketTimestampMin time.Time
	PacketTimestampMax time.Time
	ParseTime          time.Time
	PacketCount        uint
}

type PcapMetadata

type PcapMetadata struct {
	PcapInfo *PcapInfo
	Index    uint64
}

func AllFromPacketMetadata

func AllFromPacketMetadata(ci *gopacket.CaptureInfo) []*PcapMetadata

func FromPacketMetadata

func FromPacketMetadata(ci *gopacket.CaptureInfo) *PcapMetadata

Jump to

Keyboard shortcuts

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