ipsniff

package
v0.0.0-...-b51443a Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPTable

type IPTable struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewIPTable

func NewIPTable() *IPTable

func (*IPTable) Add

func (t *IPTable) Add(data *netdevice.IPInfo)

func (*IPTable) Get

func (t *IPTable) Get(ip string) (*netdevice.IPInfo, bool)

func (*IPTable) IPList

func (t *IPTable) IPList() []string

type Sniff

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

func New

func New() (*Sniff, error)

func (*Sniff) Close

func (s *Sniff) Close()

func (*Sniff) IPList

func (s *Sniff) IPList() []string

func (*Sniff) Run

func (s *Sniff) Run()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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