netlinkutils

package
v1.11.0-cni-plu...-ddfc3b1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0, Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Dummy version of the HCN API for compilation on Linux.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddrListRetryEINTR

func AddrListRetryEINTR(nlHandle *netlink.Handle, link netlink.Link, family int) ([]netlink.Addr, error)

AddrListRetryEINTR calls netlink's AddrList API and retries for 3 times if the API call is interrupted(EINTR returned). This is not an error and the call must be retried. AddrListRetryEINTR must be used for listing addresses of an interface in place of netlink's AddrList API.

func LinkListRetryEINTR

func LinkListRetryEINTR(nlHandle *netlink.Handle) ([]netlink.Link, error)

LinkListRetryEINTR calls netlink's LinkList API and retries for 3 times if the API call is interrupted(EINTR returned). This is not an error and the call must be retried. LinkListRetryEINTR must be used for listing interfaces in place of netlink's LinkList API.

func RouteListRetryEINTR

func RouteListRetryEINTR(nlHandle *netlink.Handle, link netlink.Link, family int) ([]netlink.Route, error)

RouteListRetryEINTR calls netlink's RouteList API and retries for 3 times if the API call is interrupted(EINTR returned). This is not an error and the call must be retried. RouteListRetryEINTR must be used for listing routes of an interface in place of netlink's RouteList API.

Types

This section is empty.

Jump to

Keyboard shortcuts

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