macvlan

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2026 License: Apache-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(name string, master string, netns ns.NetNS) (*netlink.Macvlan, error)

Create creates a new macvlan interface in the network namespace name is the name of the macvlan interface master is the name of the device used as master for the macvlan interface netns is network namespace where to create the macvlan

func GetByName

func GetByName(name string) (*netlink.Macvlan, error)

GetByName return a macvlan object by its name

func Install

func Install(link *netlink.Macvlan, hw net.HardwareAddr, ips []*net.IPNet, routes []*netlink.Route, netns ns.NetNS) error

Install configures a macvlan interfaces created with Create method

Types

This section is empty.

Jump to

Keyboard shortcuts

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