nas

package module
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 5 Imported by: 51

Documentation

Index

Constants

View Source
const (
	SecurityHeaderTypePlainNas                                                 uint8 = 0x00
	SecurityHeaderTypeIntegrityProtected                                       uint8 = 0x01
	SecurityHeaderTypeIntegrityProtectedAndCiphered                            uint8 = 0x02
	SecurityHeaderTypeIntegrityProtectedWithNew5gNasSecurityContext            uint8 = 0x03
	SecurityHeaderTypeIntegrityProtectedAndCipheredWithNew5gNasSecurityContext uint8 = 0x04
)
View Source
const (
	MsgTypeRegistrationRequest                              uint8 = 65
	MsgTypeRegistrationAccept                               uint8 = 66
	MsgTypeRegistrationComplete                             uint8 = 67
	MsgTypeRegistrationReject                               uint8 = 68
	MsgTypeDeregistrationRequestUEOriginatingDeregistration uint8 = 69
	MsgTypeDeregistrationAcceptUEOriginatingDeregistration  uint8 = 70
	MsgTypeDeregistrationRequestUETerminatedDeregistration  uint8 = 71
	MsgTypeDeregistrationAcceptUETerminatedDeregistration   uint8 = 72
	MsgTypeServiceRequest                                   uint8 = 76
	MsgTypeServiceReject                                    uint8 = 77
	MsgTypeServiceAccept                                    uint8 = 78
	MsgTypeConfigurationUpdateCommand                       uint8 = 84
	MsgTypeConfigurationUpdateComplete                      uint8 = 85
	MsgTypeAuthenticationRequest                            uint8 = 86
	MsgTypeAuthenticationResponse                           uint8 = 87
	MsgTypeAuthenticationReject                             uint8 = 88
	MsgTypeAuthenticationFailure                            uint8 = 89
	MsgTypeAuthenticationResult                             uint8 = 90
	MsgTypeIdentityRequest                                  uint8 = 91
	MsgTypeIdentityResponse                                 uint8 = 92
	MsgTypeSecurityModeCommand                              uint8 = 93
	MsgTypeSecurityModeComplete                             uint8 = 94
	MsgTypeSecurityModeReject                               uint8 = 95
	MsgTypeStatus5GMM                                       uint8 = 100
	MsgTypeNotification                                     uint8 = 101
	MsgTypeNotificationResponse                             uint8 = 102
	MsgTypeULNASTransport                                   uint8 = 103
	MsgTypeDLNASTransport                                   uint8 = 104
)
View Source
const (
	MsgTypePDUSessionEstablishmentRequest      uint8 = 193
	MsgTypePDUSessionEstablishmentAccept       uint8 = 194
	MsgTypePDUSessionEstablishmentReject       uint8 = 195
	MsgTypePDUSessionAuthenticationCommand     uint8 = 197
	MsgTypePDUSessionAuthenticationComplete    uint8 = 198
	MsgTypePDUSessionAuthenticationResult      uint8 = 199
	MsgTypePDUSessionModificationRequest       uint8 = 201
	MsgTypePDUSessionModificationReject        uint8 = 202
	MsgTypePDUSessionModificationCommand       uint8 = 203
	MsgTypePDUSessionModificationComplete      uint8 = 204
	MsgTypePDUSessionModificationCommandReject uint8 = 205
	MsgTypePDUSessionReleaseRequest            uint8 = 209
	MsgTypePDUSessionReleaseReject             uint8 = 210
	MsgTypePDUSessionReleaseCommand            uint8 = 211
	MsgTypePDUSessionReleaseComplete           uint8 = 212
	MsgTypeStatus5GSM                          uint8 = 214
)

Variables

This section is empty.

Functions

func GetEPD

func GetEPD(byteArray []byte) uint8

func GetSecurityHeaderType

func GetSecurityHeaderType(byteArray []byte) uint8

Types

type GmmHeader

type GmmHeader struct {
	Octet [3]uint8
}

GmmHeader Octet1 protocolDiscriminator securityHeaderType

Octet2 MessageType

func (*GmmHeader) GetExtendedProtocolDiscriminator

func (a *GmmHeader) GetExtendedProtocolDiscriminator() uint8

func (*GmmHeader) GetMessageType

func (a *GmmHeader) GetMessageType() (messageType uint8)

GetMessageType 9.8

func (*GmmHeader) SetExtendedProtocolDiscriminator

func (a *GmmHeader) SetExtendedProtocolDiscriminator(epd uint8)

func (*GmmHeader) SetMessageType

func (a *GmmHeader) SetMessageType(messageType uint8)

GetMessageType 9.8

type GsmHeader

type GsmHeader struct {
	Octet [4]uint8
}

func (*GsmHeader) GetExtendedProtocolDiscriminator

func (a *GsmHeader) GetExtendedProtocolDiscriminator() uint8

func (*GsmHeader) GetMessageType

func (a *GsmHeader) GetMessageType() (messageType uint8)

GetMessageType 9.8

func (*GsmHeader) SetExtendedProtocolDiscriminator

func (a *GsmHeader) SetExtendedProtocolDiscriminator(epd uint8)

func (*GsmHeader) SetMessageType

func (a *GsmHeader) SetMessageType(messageType uint8)

GetMessageType 9.8

type Message

type Message struct {
	SecurityHeader
	*GmmMessage
	*GsmMessage
}

Message TODO:description

func NewMessage

func NewMessage() *Message

NewMessage TODO:desc

func (*Message) GmmMessageDecode

func (a *Message) GmmMessageDecode(byteArray *[]byte) error

func (*Message) GmmMessageEncode

func (a *Message) GmmMessageEncode(buffer *bytes.Buffer) error

func (*Message) GsmMessageDecode

func (a *Message) GsmMessageDecode(byteArray *[]byte) error

func (*Message) GsmMessageEncode

func (a *Message) GsmMessageEncode(buffer *bytes.Buffer) error

func (*Message) PlainNasDecode

func (a *Message) PlainNasDecode(byteArray *[]byte) error

func (*Message) PlainNasEncode

func (a *Message) PlainNasEncode() ([]byte, error)

type SecurityHeader

type SecurityHeader struct {
	ProtocolDiscriminator     uint8
	SecurityHeaderType        uint8
	MessageAuthenticationCode uint32
	SequenceNumber            uint8
}

SecurityHeader TODO:description

Directories

Path Synopsis
internal
zuc

Jump to

Keyboard shortcuts

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