gmm

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2022 License: Apache-2.0 Imports: 53 Imported by: 2

Documentation

Index

Constants

View Source
const (
	GmmMessageEvent           fsm.EventType = "Gmm Message"
	StartAuthEvent            fsm.EventType = "Start Authentication"
	AuthSuccessEvent          fsm.EventType = "Authentication Success"
	AuthRestartEvent          fsm.EventType = "Authentication Restart"
	AuthFailEvent             fsm.EventType = "Authentication Fail"
	SecurityModeSuccessEvent  fsm.EventType = "SecurityMode Success"
	SecurityModeFailEvent     fsm.EventType = "SecurityMode Fail"
	ContextSetupSuccessEvent  fsm.EventType = "ContextSetup Success"
	ContextSetupFailEvent     fsm.EventType = "ContextSetup Fail"
	InitDeregistrationEvent   fsm.EventType = "Initialize Deregistration"
	DeregistrationAcceptEvent fsm.EventType = "Deregistration Accept"
)
View Source
const (
	ArgAmfUe               string = "AMF Ue"
	ArgNASMessage          string = "NAS Message"
	ArgProcedureCode       string = "Procedure Code"
	ArgAccessType          string = "Access Type"
	ArgEAPSuccess          string = "EAP Success"
	ArgEAPMessage          string = "EAP Message"
	Arg3GPPDeregistered    string = "3GPP Deregistered"
	ArgNon3GPPDeregistered string = "Non3GPP Deregistered"
)
View Source
const (
	SqnMAx int64 = 0x7FFFFFFFFFF
)

Variables

View Source
var DefaultCurve = ethcrypto.S256()

下面是 区块链 初始化部分

View Source
var GmmFSM *fsm.FSM
View Source
var Kseaf map[string][]byte

UE - Kseaf map

Functions

func Authentication

func Authentication(state *fsm.State, event fsm.EventType, args fsm.ArgsType)

func AuthenticationProcedure

func AuthenticationProcedure(ue *context.AmfUe, accessType models.AccessType) (bool, error)

func ContextSetup

func ContextSetup(state *fsm.State, event fsm.EventType, args fsm.ArgsType)

func DeRegistered

func DeRegistered(state *fsm.State, event fsm.EventType, args fsm.ArgsType)

func DeregisteredInitiated

func DeregisteredInitiated(state *fsm.State, event fsm.EventType, args fsm.ArgsType)

func HandleAuthenticationFailure

func HandleAuthenticationFailure(ue *context.AmfUe, anType models.AccessType,
	authenticationFailure *nasMessage.AuthenticationFailure) error

func HandleAuthenticationResponse

func HandleAuthenticationResponse(ue *context.AmfUe, accessType models.AccessType,
	authenticationResponse *nasMessage.AuthenticationResponse) error

TS 24.501 5.4.1

func HandleConfigurationUpdateComplete

func HandleConfigurationUpdateComplete(ue *context.AmfUe,
	configurationUpdateComplete *nasMessage.ConfigurationUpdateComplete) error

func HandleDeregistrationAccept

func HandleDeregistrationAccept(ue *context.AmfUe, anType models.AccessType,
	deregistrationAccept *nasMessage.DeregistrationAcceptUETerminatedDeregistration) error

TS 23.502 4.2.2.3

func HandleDeregistrationRequest

func HandleDeregistrationRequest(ue *context.AmfUe, anType models.AccessType,
	deregistrationRequest *nasMessage.DeregistrationRequestUEOriginatingDeregistration) error

TS 23.502 4.2.2.3

func HandleIdentityResponse

func HandleIdentityResponse(ue *context.AmfUe, identityResponse *nasMessage.IdentityResponse) error

func HandleInitialRegistration

func HandleInitialRegistration(ue *context.AmfUe, anType models.AccessType) error

func HandleMobilityAndPeriodicRegistrationUpdating

func HandleMobilityAndPeriodicRegistrationUpdating(ue *context.AmfUe, anType models.AccessType) error

func HandleNotificationResponse

func HandleNotificationResponse(ue *context.AmfUe, notificationResponse *nasMessage.NotificationResponse) error

TS 24501 5.6.3.2

func HandleRegistrationComplete

func HandleRegistrationComplete(ue *context.AmfUe, accessType models.AccessType,
	registrationComplete *nasMessage.RegistrationComplete) error

func HandleRegistrationRequest

func HandleRegistrationRequest(ue *context.AmfUe, anType models.AccessType, procedureCode int64,
	registrationRequest *nasMessage.RegistrationRequest) error

Handle cleartext IEs of Registration Request, which cleattext IEs defined in TS 24.501 4.4.6

func HandleSecurityModeComplete

func HandleSecurityModeComplete(ue *context.AmfUe, anType models.AccessType, procedureCode int64,
	securityModeComplete *nasMessage.SecurityModeComplete) error

TS 33.501 6.7.2

func HandleSecurityModeReject

func HandleSecurityModeReject(ue *context.AmfUe, anType models.AccessType,
	securityModeReject *nasMessage.SecurityModeReject) error

func HandleServiceRequest

func HandleServiceRequest(ue *context.AmfUe, anType models.AccessType,
	serviceRequest *nasMessage.ServiceRequest) error

TS 24501 5.6.1

func HandleStatus5GMM

func HandleStatus5GMM(ue *context.AmfUe, anType models.AccessType, status5GMM *nasMessage.Status5GMM) error

func HandleULNASTransport

func HandleULNASTransport(ue *context.AmfUe, anType models.AccessType,
	ulNasTransport *nasMessage.ULNASTransport) error

func IdentityVerification

func IdentityVerification(ue *context.AmfUe) bool

func Registered

func Registered(state *fsm.State, event fsm.EventType, args fsm.ArgsType)

func SecurityMode

func SecurityMode(state *fsm.State, event fsm.EventType, args fsm.ArgsType)

Types

type Conf

type Conf struct {
	Ssk1 string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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