netlink

package
v0.0.0-...-1d39891 Latest Latest
Warning

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

Go to latest
Published: May 12, 2020 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// RtmNewNeigh Neighbor netlink message
	RtmNewNeigh = 28
	// RtmDelNeigh Neighbor netlink message
	RtmDelNeigh = 29
)

Variables

This section is empty.

Functions

func PciFromString

func PciFromString(businfo string) (uint32, error)

PciFromString transforms the symbolic representation of a pci address in an unsigned integer.

func PciToString

func PciToString(address uint32) string

PciToString transforms un unsigned integer representing a pci address in the symbolic representation as used by the Linux kernel.

func VFSMetadataDecoder

func VFSMetadataDecoder(raw json.RawMessage) (common.Getter, error)

VFSMetadataDecoder implements a json message raw decoder

Types

type Probe

type Probe struct {
	common.RWMutex
	Ctx    tp.Context
	NsPath string
	// contains filtered or unexported fields
}

Probe describes a topology probe based on netlink in a network namespace

type ProbeHandler

type ProbeHandler struct {
	common.RWMutex
	Ctx tp.Context
	// contains filtered or unexported fields
}

ProbeHandler describes a list NetLink NameSpace probe to enhance the graph

func (*ProbeHandler) Init

func (u *ProbeHandler) Init(ctx tp.Context, bundle *probe.Bundle) (probe.Handler, error)

Init initializes a new netlink probe

func (*ProbeHandler) Register

func (u *ProbeHandler) Register(nsPath string, ctx tp.Context) (*Probe, error)

Register a new network netlink/namespace probe in the graph

func (*ProbeHandler) Start

func (u *ProbeHandler) Start()

Start the probe

func (*ProbeHandler) Stop

func (u *ProbeHandler) Stop()

Stop the probe

func (*ProbeHandler) Unregister

func (u *ProbeHandler) Unregister(nsPath string) error

Unregister a probe from a network namespace

type VF

type VF struct {
	ID        int64  `json:",omitempty"`
	LinkState int64  `json:",omitempty"`
	MAC       string `json:",omitempty"`
	Qos       int64  `json:",omitempty"`
	Spoofchk  bool   `json:",omitempty"`
	TxRate    int64  `json:",omitempty"`
	Vlan      int64  `json:",omitempty"`
}

VF describes the metadata of a virtual function easyjson:json gendecoder

type VFS

type VFS []*VF

VFS describes a list of virtual functions easyjson:json gendecoder

Jump to

Keyboard shortcuts

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