pcap_sniffer

package
v0.0.0-...-e421041 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2015 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PcapHandle

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

func NewPcapFileSniffer

func NewPcapFileSniffer(filename string) (*PcapHandle, error)

func NewPcapWireSniffer

func NewPcapWireSniffer(netDevice string, snaplen int32, wireDuration time.Duration, filter string) (*PcapHandle, error)

func (*PcapHandle) Close

func (p *PcapHandle) Close()

func (*PcapHandle) ReadPacketData

func (p *PcapHandle) ReadPacketData() (data []byte, ci gopacket.CaptureInfo, err error)

Jump to

Keyboard shortcuts

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