mac

package
v0.13.10 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlushIPNeigh added in v0.13.6

func FlushIPNeigh(ip string, exec executor.Executor) error

FlushIPNeigh flush the ip from ip neighbor table.

func ForIP

func ForIP(ip string, exec executor.Executor) (net.HardwareAddr, error)

ForIP returns the MAC address of a given IP.

func GetIfaceMac added in v0.13.6

func GetIfaceMac(iface string, exec executor.Executor) (net.HardwareAddr, error)

GetIfaceMac returns the mac of the iface.

func MatchNode

func MatchNode(nodes []corev1.Node, mac net.HardwareAddr, exec executor.Executor) (*corev1.Node, error)

MatchNode returns the node with the given MAC address.

func RequestAddressResolution added in v0.12.0

func RequestAddressResolution(ip string, exc executor.Executor) error

RequestAddressResolution does an ARP/NS request for the given IP.

func RequestAddressResolutionFromIface added in v0.13.6

func RequestAddressResolutionFromIface(ip string, iface string, exec executor.Executor) error

RequestAddressResolutionFromIface does an ARP/NS request for the given IP from the given interface.

func UpdateNodeCache

func UpdateNodeCache(nodes []corev1.Node, exec executor.Executor) error

UpdateNodeCache pings all the nodes to update the address resolution cache.

Types

This section is empty.

Jump to

Keyboard shortcuts

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