handler

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2025 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EAP5GStart = iota
	EAP5GNAS
	InitialContextSetup
)

Radius state

Variables

This section is empty.

Functions

func EncryptMppeKey

func EncryptMppeKey(key, secret, authenticator []byte, saltVal uint16) ([]byte, error)

func GenerateRandomUint8

func GenerateRandomUint8() (uint8, error)

func GenerateSalt

func GenerateSalt() (uint16, error)

func GetMessageAuthenticator

func GetMessageAuthenticator(message *message.RadiusMessage) []byte

func HandleRadiusAccessRequest

func HandleRadiusAccessRequest(udpConn *net.UDPConn, tngfAddr, ueAddr *net.UDPAddr,
	message *radius_message.RadiusMessage,
)

func SendRadiusMessageToUE

func SendRadiusMessageToUE(udpConn *net.UDPConn, srcAddr, dstAddr *net.UDPAddr, message *radius_message.RadiusMessage)

Types

type ANParameters

type ANParameters struct {
	GUAMI              *ngapType.GUAMI
	SelectedPLMNID     *ngapType.PLMNIdentity
	RequestedNSSAI     *ngapType.AllowedNSSAI
	EstablishmentCause *ngapType.RRCEstablishmentCause
	UEIdentity         *nasType.MobileIdentity5GS
}

Access Network Parameters

func UnmarshalEAP5GData

func UnmarshalEAP5GData(codedData []byte) (
	eap5GMessageID uint8,
	anParameters *ANParameters,
	nasPDU []byte,
	err error,
)

Jump to

Keyboard shortcuts

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