reader

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2018 License: MIT Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBPFFilterString added in v0.9.1

func NewBPFFilterString(host string, port uint16) string

NewBPFFilterString return string for BPF

func ParseTarget

func ParseTarget(target string) (string, uint16, error)

ParseTarget parse target to host:port

Types

type PacketReader

type PacketReader struct {
	// contains filtered or unexported fields
}

PacketReader struct

func NewPacketReader

func NewPacketReader(ctx context.Context, packetSource *gopacket.PacketSource, dumper dumper.Dumper, pValues []dumper.DumpValue) PacketReader

NewPacketReader return PacketReader

func (*PacketReader) ReadAndDump

func (r *PacketReader) ReadAndDump(host string, port uint16) error

ReadAndDump from gopacket.PacketSource

Jump to

Keyboard shortcuts

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