netlink

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2018 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Neighbor added in v0.19.1

type Neighbor struct {
	Flags   []string `json:"Flags,omitempty"`
	MAC     string
	IP      string   `json:"IP,omitempty"`
	State   []string `json:"State,omitempty"`
	Vlan    int64    `json:"Vlan,omitempty"`
	VNI     int64    `json:"VNI,omitempty"`
	IfIndex int64
}

easyjson:json

type NetLinkProbe

type NetLinkProbe struct {
	common.RWMutex
	Graph *graph.Graph
	// contains filtered or unexported fields
}

NetLinkProbe describes a list NetLink NameSpace probe to enhance the graph

func NewNetLinkProbe

func NewNetLinkProbe(g *graph.Graph, n *graph.Node) (*NetLinkProbe, error)

NewNetLinkProbe creates a new netlink probe

func (*NetLinkProbe) Register

func (u *NetLinkProbe) Register(nsPath string, root *graph.Node) (*NetNsNetLinkProbe, error)

Register a new network netlink/namespace probe in the graph

func (*NetLinkProbe) Start

func (u *NetLinkProbe) Start()

Start the probe

func (*NetLinkProbe) Stop

func (u *NetLinkProbe) Stop()

Stop the probe

func (*NetLinkProbe) Unregister

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

Unregister a probe from a network namespace

type NetNsNetLinkProbe

type NetNsNetLinkProbe struct {
	common.RWMutex
	Graph  *graph.Graph
	Root   *graph.Node
	NsPath string
	// contains filtered or unexported fields
}

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

type NextHop

type NextHop struct {
	Priority int64  `json:"Priority,omitempty"`
	IP       net.IP `json:"Src,omitempty"`
	IfIndex  int64  `json:"IfIndex,omitempty"`
}

NextHop describes a next hop easyjson:json

type Route

type Route struct {
	Protocol int64     `json:"Protocol,omitempty"`
	Prefix   string    `json:"Prefix,omitempty"`
	Nexthops []NextHop `json:"Nexthops,omitempty"`
}

Route describes a route easyjson:json

type RoutingTable

type RoutingTable struct {
	ID     int64   `json:"Id"`
	Src    net.IP  `json:"Src,omitempty"`
	Routes []Route `json:"Routes,omitempty"`
}

RoutingTable describes a list of Routes easyjson:json

Source Files

  • netlink.go

Jump to

Keyboard shortcuts

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