addr

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func CreateAddrManager

func CreateAddrManager(family int, nodeName string) *Manager

func (*Manager) ResetInfos

func (m *Manager) ResetInfos()

func (*Manager) SyncAddresses

func (m *Manager) SyncAddresses(getIPInstanceByAddress func(net.IP) (*networkingv1.IPInstance, error)) error

SyncAddresses try to add an "enhanced" addresses on vlan node forward interface For some environments, physical router or switcher might check the sender address of arp request, if the sender ip address is not in the same subnet of target address the arp request will be take as invalid and dropped.

So we will always keep an valid local pod address in the vlan interface without local routes.

func (*Manager) TryAddPodInfo

func (m *Manager) TryAddPodInfo(forwardNodeIfName string, subnet *net.IPNet, podIP net.IP)

Jump to

Keyboard shortcuts

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