datapath

package
v1.17.7 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2026 License: Apache-2.0 Imports: 23 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

View Source
var (
	LinkIP    = net.IPv4(169, 254, 1, 1)
	LinkIPv6  = net.ParseIP("fe80::1")
	LinkIPNet = &net.IPNet{
		IP:   LinkIP,
		Mask: net.CIDRMask(32, 32),
	}
	LinkIPNetv6 = &net.IPNet{
		IP:   LinkIPv6,
		Mask: net.CIDRMask(128, 128),
	}
)

default addrs

Functions

func CheckIPVLanAvailable

func CheckIPVLanAvailable() (bool, error)

CheckIPVLanAvailable checks if current kernel version meet the requirement (>= 4.19)

func GenerateENICfgForPolicy added in v1.13.2

func GenerateENICfgForPolicy(cfg *types.SetupConfig, link netlink.Link, table int) *nic.Conf

func GenerateHostPeerCfgForPolicy added in v1.13.2

func GenerateHostPeerCfgForPolicy(cfg *types.SetupConfig, link netlink.Link, table int) *nic.Conf

Types

type ExclusiveENI

type ExclusiveENI struct{}

ExclusiveENI put nic in net ns

func NewExclusiveENIDriver

func NewExclusiveENIDriver() *ExclusiveENI

func (*ExclusiveENI) Check

func (r *ExclusiveENI) Check(ctx context.Context, cfg *types.CheckConfig) error

func (*ExclusiveENI) Setup

func (r *ExclusiveENI) Setup(ctx context.Context, cfg *types.SetupConfig, netNS ns.NetNS) error

type IPvlanDriver

type IPvlanDriver struct{}

func NewIPVlanDriver

func NewIPVlanDriver() *IPvlanDriver

func (*IPvlanDriver) Check

func (d *IPvlanDriver) Check(ctx context.Context, cfg *types.CheckConfig) error

func (*IPvlanDriver) Setup

func (d *IPvlanDriver) Setup(ctx context.Context, cfg *types.SetupConfig, netNS ns.NetNS) error

func (*IPvlanDriver) Teardown

func (d *IPvlanDriver) Teardown(ctx context.Context, cfg *types.TeardownCfg, netNS ns.NetNS) error

type PolicyRoute

type PolicyRoute struct{}

func NewPolicyRoute

func NewPolicyRoute() *PolicyRoute

func (*PolicyRoute) Check

func (d *PolicyRoute) Check(ctx context.Context, cfg *types.CheckConfig) error

func (*PolicyRoute) Setup

func (d *PolicyRoute) Setup(ctx context.Context, cfg *types.SetupConfig, netNS ns.NetNS) error

func (*PolicyRoute) Teardown added in v1.3.0

func (d *PolicyRoute) Teardown(ctx context.Context, cfg *types.TeardownCfg, netNS ns.NetNS) error

type Vlan

type Vlan struct{}

func NewVlan

func NewVlan() *Vlan

func (*Vlan) Check

func (d *Vlan) Check(ctx context.Context, cfg *types.CheckConfig) error

func (*Vlan) Setup

func (d *Vlan) Setup(ctx context.Context, cfg *types.SetupConfig, netNS ns.NetNS) error

Jump to

Keyboard shortcuts

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