linuxcalls

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddArpEntry

func AddArpEntry(name string, arpEntry *netlink.Neigh, log logging.Logger, timeLog measure.StopWatchEntry) error

AddArpEntry creates a new static ARP entry

func AddStaticRoute

func AddStaticRoute(name string, route *netlink.Route, log logging.Logger, timeLog measure.StopWatchEntry) error

AddStaticRoute creates the new static route

func DeleteArpEntry

func DeleteArpEntry(name string, arpEntry *netlink.Neigh, log logging.Logger, timeLog measure.StopWatchEntry) error

DeleteArpEntry removes an static ARP entry

func DeleteStaticRoute

func DeleteStaticRoute(name string, route *netlink.Route, log logging.Logger, timeLog measure.StopWatchEntry) error

DeleteStaticRoute removes the static route

func ModifyArpEntry

func ModifyArpEntry(name string, arpEntry *netlink.Neigh, log logging.Logger, timeLog measure.StopWatchEntry) error

ModifyArpEntry updates existing arp entry

func ModifyStaticRoute

func ModifyStaticRoute(name string, route *netlink.Route, log logging.Logger, timeLog measure.StopWatchEntry) error

ModifyStaticRoute removes the static route

func ReadArpEntries

func ReadArpEntries(interfaceIdx int, family int, log logging.Logger, timeLog measure.StopWatchEntry) ([]netlink.Neigh, error)

ReadArpEntries reads all configured static ARP entries for given interface <interfaceIdx> and <family> parameters works as filters, if they are set to zero, all arp entries are returned

func ReadStaticRoutes

func ReadStaticRoutes(link netlink.Link, family int, log logging.Logger, timeLog measure.StopWatchEntry) ([]netlink.Route, error)

ReadStaticRoutes reads static routes // <link> and <family> parameters works as filters, if they are set to nil/zero values, all routes are returned

func ToArpNs

ToArpNs converts generic namespace to arp-type namespace

func ToGenericArpNs

ToGenericArpNs converts arp-type namespace to generic type namespace. Such an object can be used to call common namespace-related methods

func ToGenericRouteNs

ToGenericRouteNs converts route-type namespace to generic type namespace. Such an object can be used to call common namespace-related methods

func ToRouteNs

ToRouteNs converts generic namespace to arp-type namespace

Types

This section is empty.

Jump to

Keyboard shortcuts

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