udwPcapIpPacket

package
v0.0.0-...-f254aa5 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendItemToBuffer

func AppendItemToBuffer(_buf *udwBytes.BufWriter, item Item)

func GetGlobalHeader

func GetGlobalHeader() []byte

func MarshalToBuffer

func MarshalToBuffer(_buf *udwBytes.BufWriter, itemList []Item)

func MustAppendIpPacketToFile

func MustAppendIpPacketToFile(filePath string, t time.Time, IpPacket []byte)

func ReadPcapToIpPacket

func ReadPcapToIpPacket(buf []byte, cb func(item Item)) (errMsg string)

Types

type Item

type Item struct {
	T        time.Time
	IpPacket []byte
}

Jump to

Keyboard shortcuts

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