message

package
v0.0.0-...-2cd4efc Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ANParametersTypeGUAMI              = 1
	ANParametersTypeSelectedPLMNID     = 2
	ANParametersTypeRequestedNSSAI     = 3
	ANParametersTypeEstablishmentCause = 4
)

Used in AN-Parameter field for IE types

View Source
const (
	ANParametersLenGUAMI    = 6
	ANParametersLenPLMNID   = 3
	ANParametersLenEstCause = 1
)

Used for checking if AN-Parameter length field is legal

View Source
const (
	EstablishmentCauseEmergency          = 0
	EstablishmentCauseHighPriorityAccess = 1
	EstablishmentCauseMO_Signalling      = 3
	EstablishmentCauseMO_Data            = 4
	EstablishmentCauseMPS_PriorityAccess = 8
	EstablishmentCauseMCS_PriorityAccess = 9
)

Used in IE Establishment Cause field for cause types

Variables

This section is empty.

Functions

func AppendPDUSessionResourceFailedToModifyListModRes

func AppendPDUSessionResourceFailedToModifyListModRes(
	list *ngapType.PDUSessionResourceFailedToModifyListModRes, pduSessionID int64, transfer []byte,
)

func AppendPDUSessionResourceFailedToSetupListCxtRes

func AppendPDUSessionResourceFailedToSetupListCxtRes(
	list *ngapType.PDUSessionResourceFailedToSetupListCxtRes, pduSessionID int64, transfer []byte,
)

func AppendPDUSessionResourceFailedToSetupListCxtfail

func AppendPDUSessionResourceFailedToSetupListCxtfail(
	list *ngapType.PDUSessionResourceFailedToSetupListCxtFail, pduSessionID int64, transfer []byte,
)

func AppendPDUSessionResourceFailedToSetupListSURes

func AppendPDUSessionResourceFailedToSetupListSURes(
	list *ngapType.PDUSessionResourceFailedToSetupListSURes, pduSessionID int64, transfer []byte,
)

func AppendPDUSessionResourceModifyListModRes

func AppendPDUSessionResourceModifyListModRes(
	list *ngapType.PDUSessionResourceModifyListModRes, pduSessionID int64, transfer []byte,
)

func AppendPDUSessionResourceSetupListCxtRes

func AppendPDUSessionResourceSetupListCxtRes(
	list *ngapType.PDUSessionResourceSetupListCxtRes, pduSessionID int64, transfer []byte,
)

func AppendPDUSessionResourceSetupListSURes

func AppendPDUSessionResourceSetupListSURes(
	list *ngapType.PDUSessionResourceSetupListSURes, pduSessionID int64, transfer []byte,
)

func BuildAMFConfigurationUpdateAcknowledge

func BuildAMFConfigurationUpdateAcknowledge(
	setupList *ngapType.AMFTNLAssociationSetupList,
	failList *ngapType.TNLAssociationList,
	diagnostics *ngapType.CriticalityDiagnostics,
) ([]byte, error)

func BuildAMFConfigurationUpdateFailure

func BuildAMFConfigurationUpdateFailure(
	ngCause ngapType.Cause,
	time *ngapType.TimeToWait,
	diagnostics *ngapType.CriticalityDiagnostics,
) ([]byte, error)

func BuildCause

func BuildCause(present int, value aper.Enumerated) (cause *ngapType.Cause)

func BuildErrorIndication

func BuildErrorIndication(
	amfUENGAPID *int64,
	ranUENGAPID *int64,
	cause *ngapType.Cause,
	criticalityDiagnostics *ngapType.CriticalityDiagnostics,
) ([]byte, error)

func BuildInitialContextSetupFailure

func BuildInitialContextSetupFailure(
	ranUe *context.N3IWFRanUe,
	cause ngapType.Cause,
	failedList *ngapType.PDUSessionResourceFailedToSetupListCxtFail,
	criticalityDiagnostics *ngapType.CriticalityDiagnostics,
) ([]byte, error)

func BuildInitialContextSetupResponse

func BuildInitialContextSetupResponse(
	ranUe *context.N3IWFRanUe,
	responseList *ngapType.PDUSessionResourceSetupListCxtRes,
	failedList *ngapType.PDUSessionResourceFailedToSetupListCxtRes,
	criticalityDiagnostics *ngapType.CriticalityDiagnostics,
) ([]byte, error)

func BuildInitialUEMessage

func BuildInitialUEMessage(ranUe *context.N3IWFRanUe, nasPdu []byte,
	allowedNSSAI *ngapType.AllowedNSSAI,
) ([]byte, error)

func BuildLocationReport

func BuildLocationReport() ([]byte, error)

func BuildLocationReportingFailureIndication

func BuildLocationReportingFailureIndication() ([]byte, error)

func BuildNASNonDeliveryIndication

func BuildNASNonDeliveryIndication(ranUe *context.N3IWFRanUe, nasPdu []byte, cause ngapType.Cause) ([]byte, error)

func BuildNGReset

func BuildNGReset(
	ngCause ngapType.Cause,
	partOfNGInterface *ngapType.UEAssociatedLogicalNGConnectionList,
) ([]byte, error)

func BuildNGResetAcknowledge

func BuildNGResetAcknowledge(
	partOfNGInterface *ngapType.UEAssociatedLogicalNGConnectionList,
	diagnostics *ngapType.CriticalityDiagnostics,
) ([]byte, error)

func BuildNGSetupRequest

func BuildNGSetupRequest() ([]byte, error)

func BuildPDUSessionResourceModifyIndication

func BuildPDUSessionResourceModifyIndication(
	ranUe *context.N3IWFRanUe,
	modifyList []ngapType.PDUSessionResourceModifyItemModInd,
) ([]byte, error)

func BuildPDUSessionResourceModifyResponse

func BuildPDUSessionResourceModifyResponse(
	ranUe *context.N3IWFRanUe,
	responseList *ngapType.PDUSessionResourceModifyListModRes,
	failedList *ngapType.PDUSessionResourceFailedToModifyListModRes,
	criticalityDiagnostics *ngapType.CriticalityDiagnostics,
) ([]byte, error)

func BuildPDUSessionResourceModifyResponseTransfer

func BuildPDUSessionResourceModifyResponseTransfer(
	ulNGUUPTNLInformation *ngapType.UPTransportLayerInformation,
	dlNGUUPTNLInformation *ngapType.UPTransportLayerInformation,
	responseList *ngapType.QosFlowAddOrModifyResponseList,
	failedList *ngapType.QosFlowListWithCause,
) ([]byte, error)

func BuildPDUSessionResourceModifyUnsuccessfulTransfer

func BuildPDUSessionResourceModifyUnsuccessfulTransfer(cause ngapType.Cause,
	criticalityDiagnostics *ngapType.CriticalityDiagnostics,
) ([]byte, error)

func BuildPDUSessionResourceReleaseResponse

func BuildPDUSessionResourceReleaseResponse(
	ranUe *context.N3IWFRanUe,
	relList ngapType.PDUSessionResourceReleasedListRelRes,
	diagnostics *ngapType.CriticalityDiagnostics,
) ([]byte, error)

func BuildPDUSessionResourceSetupResponse

func BuildPDUSessionResourceSetupResponse(
	ranUe *context.N3IWFRanUe,
	responseList *ngapType.PDUSessionResourceSetupListSURes,
	failedList *ngapType.PDUSessionResourceFailedToSetupListSURes,
	criticalityDiagnostics *ngapType.CriticalityDiagnostics,
) ([]byte, error)

func BuildPDUSessionResourceSetupResponseTransfer

func BuildPDUSessionResourceSetupResponseTransfer(pduSession *context.PDUSession) ([]byte, error)

func BuildPDUSessionResourceSetupUnsuccessfulTransfer

func BuildPDUSessionResourceSetupUnsuccessfulTransfer(
	cause ngapType.Cause, criticalityDiagnostics *ngapType.CriticalityDiagnostics,
) ([]byte, error)

func BuildRANConfigurationUpdate

func BuildRANConfigurationUpdate() ([]byte, error)

func BuildRRCInactiveTransitionReport

func BuildRRCInactiveTransitionReport() ([]byte, error)

func BuildRerouteNASRequest

func BuildRerouteNASRequest() ([]byte, error)

func BuildUEContextModificationFailure

func BuildUEContextModificationFailure(ranUe *context.N3IWFRanUe, cause ngapType.Cause,
	criticalityDiagnostics *ngapType.CriticalityDiagnostics,
) ([]byte, error)

func BuildUEContextModificationResponse

func BuildUEContextModificationResponse(
	ranUe *context.N3IWFRanUe, criticalityDiagnostics *ngapType.CriticalityDiagnostics,
) ([]byte, error)

func BuildUEContextReleaseComplete

func BuildUEContextReleaseComplete(ranUe *context.N3IWFRanUe,
	criticalityDiagnostics *ngapType.CriticalityDiagnostics,
) ([]byte, error)

func BuildUEContextReleaseRequest

func BuildUEContextReleaseRequest(ranUe *context.N3IWFRanUe, cause ngapType.Cause) ([]byte, error)

func BuildUERadioCapabilityCheckResponse

func BuildUERadioCapabilityCheckResponse(
	ranUe *context.N3IWFRanUe,
	diagnostics *ngapType.CriticalityDiagnostics,
) ([]byte, error)

func BuildUERadioCapabilityInfoIndication

func BuildUERadioCapabilityInfoIndication() ([]byte, error)

func BuildUplinkNASTransport

func BuildUplinkNASTransport(ranUe *context.N3IWFRanUe, nasPdu []byte) ([]byte, error)

func BuildUplinkRANConfigurationTransfer

func BuildUplinkRANConfigurationTransfer() ([]byte, error)

func BuildUplinkRANStatusTransfer

func BuildUplinkRANStatusTransfer() ([]byte, error)

func SendAMFConfigurationUpdateAcknowledge

func SendAMFConfigurationUpdateAcknowledge(
	amf *context.N3IWFAMF,
	setupList *ngapType.AMFTNLAssociationSetupList,
	failList *ngapType.TNLAssociationList,
	diagnostics *ngapType.CriticalityDiagnostics,
)

func SendAMFConfigurationUpdateFailure

func SendAMFConfigurationUpdateFailure(
	amf *context.N3IWFAMF,
	ngCause ngapType.Cause,
	time *ngapType.TimeToWait,
	diagnostics *ngapType.CriticalityDiagnostics,
)

func SendErrorIndication

func SendErrorIndication(
	amf *context.N3IWFAMF,
	amfUENGAPID *int64,
	ranUENGAPID *int64,
	cause *ngapType.Cause,
	criticalityDiagnostics *ngapType.CriticalityDiagnostics,
)

func SendErrorIndicationWithSctpConn

func SendErrorIndicationWithSctpConn(
	sctpConn *sctp.SCTPConn,
	amfUENGAPID *int64,
	ranUENGAPID *int64,
	cause *ngapType.Cause,
	criticalityDiagnostics *ngapType.CriticalityDiagnostics,
)

func SendInitialContextSetupFailure

func SendInitialContextSetupFailure(
	ranUe *context.N3IWFRanUe,
	cause ngapType.Cause,
	failedList *ngapType.PDUSessionResourceFailedToSetupListCxtFail,
	criticalityDiagnostics *ngapType.CriticalityDiagnostics,
)

func SendInitialContextSetupResponse

func SendInitialContextSetupResponse(
	ranUe *context.N3IWFRanUe,
	responseList *ngapType.PDUSessionResourceSetupListCxtRes,
	failedList *ngapType.PDUSessionResourceFailedToSetupListCxtRes,
	criticalityDiagnostics *ngapType.CriticalityDiagnostics,
)

func SendInitialUEMessage

func SendInitialUEMessage(amf *context.N3IWFAMF,
	ranUe *context.N3IWFRanUe, nasPdu []byte,
)

func SendLocationReport

func SendLocationReport()

func SendLocationReportingFailureIndication

func SendLocationReportingFailureIndication()

func SendNASNonDeliveryIndication

func SendNASNonDeliveryIndication(
	ranUe *context.N3IWFRanUe,
	nasPdu []byte,
	cause ngapType.Cause,
)

func SendNGReset

func SendNGReset(
	amf *context.N3IWFAMF,
	cause ngapType.Cause,
	partOfNGInterface *ngapType.UEAssociatedLogicalNGConnectionList,
)

partOfNGInterface: if reset type is "reset all", set it to nil TS 38.413 9.2.6.11

func SendNGResetAcknowledge

func SendNGResetAcknowledge(
	amf *context.N3IWFAMF,
	partOfNGInterface *ngapType.UEAssociatedLogicalNGConnectionList,
	diagnostics *ngapType.CriticalityDiagnostics,
)

func SendNGSetupRequest

func SendNGSetupRequest(conn *sctp.SCTPConn)

func SendPDUSessionResourceModifyIndication

func SendPDUSessionResourceModifyIndication(
	ranUe *context.N3IWFRanUe,
	modifyList []ngapType.PDUSessionResourceModifyItemModInd,
)

func SendPDUSessionResourceModifyResponse

func SendPDUSessionResourceModifyResponse(
	ranUe *context.N3IWFRanUe,
	responseList *ngapType.PDUSessionResourceModifyListModRes,
	failedList *ngapType.PDUSessionResourceFailedToModifyListModRes,
	criticalityDiagnostics *ngapType.CriticalityDiagnostics,
)

func SendPDUSessionResourceReleaseResponse

func SendPDUSessionResourceReleaseResponse(
	ranUe *context.N3IWFRanUe,
	relList ngapType.PDUSessionResourceReleasedListRelRes,
	diagnostics *ngapType.CriticalityDiagnostics,
)

func SendPDUSessionResourceSetupResponse

func SendPDUSessionResourceSetupResponse(
	ranUe *context.N3IWFRanUe,
	responseList *ngapType.PDUSessionResourceSetupListSURes,
	failedListSURes *ngapType.PDUSessionResourceFailedToSetupListSURes,
	criticalityDiagnostics *ngapType.CriticalityDiagnostics,
)

func SendRANConfigurationUpdate

func SendRANConfigurationUpdate(amf *context.N3IWFAMF)

func SendRRCInactiveTransitionReport

func SendRRCInactiveTransitionReport()

func SendRerouteNASRequest

func SendRerouteNASRequest()

func SendToAmf

func SendToAmf(amf *context.N3IWFAMF, pkt []byte)

func SendUEContextModificationFailure

func SendUEContextModificationFailure(
	ranUe *context.N3IWFRanUe,
	cause ngapType.Cause,
	criticalityDiagnostics *ngapType.CriticalityDiagnostics,
)

func SendUEContextModificationResponse

func SendUEContextModificationResponse(
	ranUe *context.N3IWFRanUe,
	criticalityDiagnostics *ngapType.CriticalityDiagnostics,
)

func SendUEContextReleaseComplete

func SendUEContextReleaseComplete(
	ranUe *context.N3IWFRanUe,
	criticalityDiagnostics *ngapType.CriticalityDiagnostics,
)

func SendUEContextReleaseRequest

func SendUEContextReleaseRequest(
	ranUe *context.N3IWFRanUe, cause ngapType.Cause,
)

func SendUERadioCapabilityCheckResponse

func SendUERadioCapabilityCheckResponse(
	amf *context.N3IWFAMF,
	ranUe *context.N3IWFRanUe,
	diagnostics *ngapType.CriticalityDiagnostics,
)

func SendUERadioCapabilityInfoIndication

func SendUERadioCapabilityInfoIndication()

func SendUplinkNASTransport

func SendUplinkNASTransport(
	ranUe *context.N3IWFRanUe,
	nasPdu []byte,
)

func SendUplinkRANConfigurationTransfer

func SendUplinkRANConfigurationTransfer()

func SendUplinkRANStatusTransfer

func SendUplinkRANStatusTransfer()

Types

type ANParameters

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

Access Network Parameters

func UnmarshalEAP5GData

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

Jump to

Keyboard shortcuts

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