source

package
v0.0.0-...-b3f7bda Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPcapSource

func NewPcapSource(device string, opts ...option) *pcap.Handle

func WithBufferSize

func WithBufferSize(size int) option

func WithPromisc

func WithPromisc(promisc bool) option

func WithSnaplen

func WithSnaplen(len int) option

func WithTimeout

func WithTimeout(seconds int) option

设置超时

Types

type PcapSource

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

func NewDefaultPcapSource

func NewDefaultPcapSource() *PcapSource

Jump to

Keyboard shortcuts

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