link

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: Apache-2.0 Imports: 9 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnsupported = errors.New("not supported arch")
	ErrNotFound    = errors.New("not found")
)

define err

Functions

func DeleteIPRulesByIP added in v1.1.0

func DeleteIPRulesByIP(addr *net.IPNet) error

DeleteIPRulesByIP delete all ip rule related to the addr

func DeleteRouteByIP added in v1.1.0

func DeleteRouteByIP(addr *net.IPNet) error

DeleteRouteByIP delete all route related to the addr

func GetDeviceNumber

func GetDeviceNumber(mac string) (int32, error)

GetDeviceNumber get interface device number by mac address

func VethNameForPod

func VethNameForPod(name, namespace, ifName, prefix string) (string, error)

VethNameForPod return host-side veth name for pod max veth length is 15

Types

This section is empty.

Jump to

Keyboard shortcuts

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