sr4mec

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Copyright Louis Royer and the NextMN 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 Louis Royer and the NextMN 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

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ctrl

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

func NewCtrl

func NewCtrl(bindAddr netip.AddrPort, userAgent string, slicesSR map[config.SliceName]config.SliceSR) *Ctrl

func (*Ctrl) CreateForwarding

func (c *Ctrl) CreateForwarding(ctx context.Context, ueCtrl jsonapi.ControlURI, ueIpAddr netip.Addr, gnbCtrl jsonapi.ControlURI, dnn config.SliceName, dlFteid *jsonapi.Fteid) (*PduSessionN3, error)

Create an forwarding rule (when receive HO Request Ack), and a target DL rule if not doing post-handover rebinding

func (*Ctrl) CreateNewDownlinkExistingSession

func (c *Ctrl) CreateNewDownlinkExistingSession(ctx context.Context, ueCtrl jsonapi.ControlURI, ueIpAddr netip.Addr, dnn config.SliceName) error

Create/switch downlink rule

func (*Ctrl) CreateNewUplinkExistingSession

func (c *Ctrl) CreateNewUplinkExistingSession(ctx context.Context, ueCtrl jsonapi.ControlURI, ueIpAddr netip.Addr, gnbCtrl jsonapi.ControlURI, dnn config.SliceName) (*PduSessionN3, error)

Create an uplink for after HO required

func (c *Ctrl) CreateSessionDownlink(ctx context.Context, ueCtrl jsonapi.ControlURI, ueIp netip.Addr, dnn config.SliceName, gnbCtrl jsonapi.ControlURI, gnbFteid jsonapi.Fteid) (*PduSessionN3, error)

Create a downlink for a new PDU Session (at establishment, after receiving N2 response)

func (c *Ctrl) CreateSessionUplink(ctx context.Context, ueCtrl jsonapi.ControlURI, ueIpAddr netip.Addr, gnbCtrl jsonapi.ControlURI, dnn config.SliceName) (*PduSessionN3, error)

Create an uplink for a new PDU Session (at establishment)

type PduSessionN3

type PduSessionN3 struct {
	UeIpAddr netip.Addr

	// At PS Establishment
	UplinkFteid   *jsonapi.Fteid
	UplinkRule    *url.URL
	DownlinkFteid *jsonapi.Fteid
	DownlinkRule  *url.URL

	// After HO Required
	TargetUplinkFteid *jsonapi.Fteid
	TargetUplinkRule  *url.URL

	// After HO Request Ack
	ForwardingFteid     *jsonapi.Fteid
	ForwardingRule      *url.URL
	TargetDownlinkFteid *jsonapi.Fteid
	TargetDownlinkRule  *url.URL
}

Jump to

Keyboard shortcuts

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