upf

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Overview

Copyright 2022 Louis Royer and the NextMN-UPF contributors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file. SPDX-License-Identifier: MIT

Copyright 2022 Louis Royer and the NextMN-UPF contributors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file. SPDX-License-Identifier: MIT

Copyright 2022 Louis Royer and the NextMN-UPF contributors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file. SPDX-License-Identifier: MIT

Copyright 2022 Louis Royer and the NextMN-UPF contributors. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file. SPDX-License-Identifier: MIT

Index

Constants

View Source
const (
	GTPU_PORT   = "2152"
	MTU_GTP_TUN = 1400
)

Variables

View Source
var TUNInterface *water.Interface

Functions

func Exit

func Exit() error

func PFCPLogger

func PFCPLogger()

func ParseConf

func ParseConf(file string) error

func Run

func Run() error

Types

type DNN

type DNN struct {
	Dnn  string `yaml:"dnn"`
	Cidr string `yaml:"cidr"`
}

type FARAssociationDB

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

func NewFARAssociationDB

func NewFARAssociationDB() *FARAssociationDB

func (*FARAssociationDB) Add

func (db *FARAssociationDB) Add(seid uint64, farid uint32, uConn *gtpv1.UPlaneConn)

func (*FARAssociationDB) Get

func (db *FARAssociationDB) Get(seid uint64, farid uint32) *gtpv1.UPlaneConn

type RAN

type RAN struct {
	IPv4Address string `yaml:"ipv4"`
	IPv6Address string `yaml:"ipv6"`
}

type UpfConfig

type UpfConfig struct {
	PFCPAddress          *string  `yaml:"pfcp-address,omitempty"`
	TunInterface         *string  `yaml:"tun-interface,omitempty"`
	GTPUProtocolEntities []string `yaml:"gtpu-entities"`
	DNNList              []*DNN   `yaml:"dnn_list,omitempty"`
	SimulateRAN          *RAN     `yaml:"simulate-ran,omitempty"`
}
var Upf *UpfConfig

Jump to

Keyboard shortcuts

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