netlink

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHostFlows

func GetHostFlows(opt *GetHostFlowsOption) (probe.HostFlows, error)

GetHostFlows gets host flows by netlink, and try to get by procfs if it fails.

func GetHostFlowsByNetlink(opt *GetHostFlowsOption) (probe.HostFlows, error)

GetHostFlowsByNetlink gets host flows by Linux netlink API.

func GetHostFlowsByProcfs

func GetHostFlowsByProcfs() (probe.HostFlows, error)

GetHostFlowsByProcfs gets host flows from procfs.

Types

type GetHostFlowsOption

type GetHostFlowsOption struct {
	Numeric   bool
	Processes bool
	Filter    string
}

GetHostFlowsOption represens an option for func GetHostFlows().

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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