upf

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PfcpAddress         = "0.0.0.0"
	PfcpNodeID          = "0.0.0.0"
	FTEIDPool           = 65535
	ConnTrackTimeout    = 10 * time.Minute
	InactiveFlowTimeout = 30 * time.Second
	ActiveFlowTimeout   = 30 * time.Minute
)

Variables

This section is empty.

Functions

func RegisterMetrics added in v1.2.0

func RegisterMetrics()

func StringToXDPAttachMode

func StringToXDPAttachMode(Mode string) link.XDPAttachFlags

Types

type UPF added in v0.1.0

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

func Start

func Start(ctx context.Context, n3Interface config.N3Interface, n3Address string, advertisedN3Address string, n6Interface config.N6Interface, xdpAttachMode string, masquerade bool, flowact bool) (*UPF, error)

func (*UPF) Close added in v0.1.0

func (u *UPF) Close()

func (*UPF) ReloadFlowAccounting added in v1.4.0

func (u *UPF) ReloadFlowAccounting(flowact bool) error

func (*UPF) ReloadNAT added in v1.4.0

func (u *UPF) ReloadNAT(masquerade bool) error

func (*UPF) UpdateAdvertisedN3Address added in v0.5.0

func (u *UPF) UpdateAdvertisedN3Address(newN3Addr net.IP)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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