linuxcalls

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2018 License: Apache-2.0 Imports: 4 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

Types

This section is empty.

Jump to

Keyboard shortcuts

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