fou

package
v0.0.0-...-5089687 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FoU4LinkPrefix = "fou4_"
	FoU6LinkPrefix = "fou6_"
)

Prefixes for Foo-over-UDP tunnel link names

Variables

This section is empty.

Functions

This section is empty.

Types

type FouTunnelController

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

func NewFoUTunnelController

func NewFoUTunnelController(port int, localIPv4, localIPv6 *netip.Addr) (*FouTunnelController, error)

NewFoUTunnel creates a new fouTunnel. port is the UDP port to receive FoU packets. localIPv4 is the local IPv4 address of the IPIP tunnel. This can be nil. localIPv6 is the same as localIPv4 for IPv6.

func (*FouTunnelController) AddPeer

func (t *FouTunnelController) AddPeer(addr netip.Addr) (netlink.Link, error)

func (*FouTunnelController) DelPeer

func (t *FouTunnelController) DelPeer(addr netip.Addr) error

func (*FouTunnelController) Init

func (t *FouTunnelController) Init() error

func (*FouTunnelController) IsInitialized

func (t *FouTunnelController) IsInitialized() bool

Jump to

Keyboard shortcuts

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