This repository has been archived by the owner on Apr 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
NasPdu.go
83 lines (52 loc) · 3.45 KB
/
NasPdu.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
//go:binary-only-package
package nasTestpacket
import (
"bytes"
"encoding/base64"
"encoding/hex"
"fmt"
"free5gc/lib/nas"
"free5gc/lib/nas/nasMessage"
"free5gc/lib/nas/nasType"
"free5gc/lib/openapi/models"
)
const (
PDUSesModiReq string = "PDU Session Modification Request"
PDUSesModiCmp string = "PDU Session Modification Complete"
PDUSesModiCmdRej string = "PDU Session Modification Command Reject"
PDUSesRelReq string = "PDU Session Release Request"
PDUSesRelCmp string = "PDU Session Release Complete"
PDUSesRelRej string = "PDU Session Release Reject"
PDUSesAuthCmp string = "PDU Session Authentication Complete"
)
func GetRegistrationRequest(registrationType uint8, mobileIdentity nasType.MobileIdentity5GS, requestedNSSAI *nasType.RequestedNSSAI, uplinkDataStatus *nasType.UplinkDataStatus) (nasPdu []byte) {}
func GetRegistrationRequestWith5GMM(registrationType uint8, mobileIdentity nasType.MobileIdentity5GS, requestedNSSAI *nasType.RequestedNSSAI, uplinkDataStatus *nasType.UplinkDataStatus) (nasPdu []byte) {}
func GetPduSessionEstablishmentRequest(pduSessionId uint8) (nasPdu []byte) {}
func GetUlNasTransport_PduSessionEstablishmentRequest(pduSessionId uint8, requestType uint8, dnnString string, sNssai *models.Snssai) (nasPdu []byte) {}
func GetUlNasTransport_PduSessionModificationRequest(pduSessionId uint8, requestType uint8, dnnString string, sNssai *models.Snssai) (nasPdu []byte) {}
func GetPduSessionModificationRequest(pduSessionId uint8) (nasPdu []byte) {}
func GetPduSessionModificationComplete(pduSessionId uint8) (nasPdu []byte) {}
func GetPduSessionModificationCommandReject(pduSessionId uint8) (nasPdu []byte) {}
func GetPduSessionReleaseRequest(pduSessionId uint8) (nasPdu []byte) {}
func GetPduSessionReleaseComplete(pduSessionId uint8) (nasPdu []byte) {}
func GetPduSessionReleaseReject(pduSessionId uint8) (nasPdu []byte) {}
func GetPduSessionReleaseCommand(pduSessionId uint8) (nasPdu []byte) {}
func GetPduSessionAuthenticationComplete(pduSessionId uint8) (nasPdu []byte) {}
func GetUlNasTransport_PduSessionCommonData(pduSessionId uint8, types string) (nasPdu []byte) {}
func GetIdentityResponse(mobileIdentity nasType.MobileIdentity) (nasPdu []byte) {}
func GetNotificationResponse(pDUSessionStatus []uint8) (nasPdu []byte) {}
func GetConfigurationUpdateComplete() (nasPdu []byte) {}
func GetServiceRequest(serviceType uint8) (nasPdu []byte) {}
func GetAuthenticationResponse(authenticationResponseParam []uint8, eapMsg string) (nasPdu []byte) {}
func GetAuthenticationFailure(cause5GMM uint8, authenticationFailureParam []uint8) (nasPdu []byte) {}
func GetRegistrationComplete(sorTransparentContainer []uint8) (nasPdu []byte) {}
// TS 24.501 8.2.26
func GetSecurityModeComplete(nasMessageContainer []uint8) (nasPdu []byte) {}
func GetSecurityModeReject(cause5GMM uint8) (nasPdu []byte) {}
func GetDeregistrationRequest(accessType uint8, switchOff uint8, ngKsi uint8, mobileIdentity5GS nasType.MobileIdentity5GS) (nasPdu []byte) {}
func GetDeregistrationAccept() (nasPdu []byte) {}
func GetStatus5GMM(cause uint8) (nasPdu []byte) {}
func GetStatus5GSM(pduSessionId uint8, cause uint8) (nasPdu []byte) {}
func GetUlNasTransport_Status5GSM(pduSessionId uint8, cause uint8) (nasPdu []byte) {}
func GetUlNasTransport_PduSessionReleaseRequest(pduSessionId uint8) (nasPdu []byte) {}
func GetUlNasTransport_PduSessionReleaseCommand(pduSessionId uint8, requestType uint8, dnnString string, sNssai *models.Snssai) (nasPdu []byte) {}