context

package
v0.0.0-...-701375f Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthData

type AuthData struct {
	AuthMethod string
	K          string
	OPC        string
	OP         string
	AMF        string

	SQN string
	// contains filtered or unexported fields
}

func (*AuthData) AuthDataSQNAddOne

func (a *AuthData) AuthDataSQNAddOne()

type IPSecInterface

type IPSecInterface struct {
	Name string
	Mark *uint32
}

type L4Addr

type L4Addr struct {
	IP   string
	Port uint16
}

type Log

type Log struct {
	LogPath      string
	DebugLevel   logrus.Level
	ReportCaller bool
}

type N3UEContext

type N3UEContext struct {
	// Configs
	Log            *Log
	IKEBindAddress string
	N3IWFAddress   L4Addr
	IPSecIf        IPSecInterface
	Supi           string
	Nssai          *NSSAI
	UeAmbr         *UEAMBR
	Auth           AuthData
	PlmnID         string
	CipheringAlgo  string
	IntegrityAlgo  string

	// Data
	// Mapping
	SPI_IKESA sync.Map // map[uint64]IKESA
}

func (*N3UEContext) Init

func (c *N3UEContext) Init(conf *config.Config) error

type NSSAI

type NSSAI struct {
	DefaultSNSSAIs []*SNSSAI
	SNSSAIs        []*SNSSAI
}

type SNSSAI

type SNSSAI struct {
	SST uint8
	SD  string
}

type UEAMBR

type UEAMBR struct {
	Uplink   string
	Downlink string
}

Jump to

Keyboard shortcuts

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