Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-SMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-SMF
Commits
7efeaece
Commit
7efeaece
authored
Oct 09, 2019
by
yunshou-yang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SM : successful test
parent
b50f772b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
22 deletions
+24
-22
src/nas/3gpp_24.501.h
src/nas/3gpp_24.501.h
+20
-17
src/nas/sm/msg/sm_msg.c
src/nas/sm/msg/sm_msg.c
+4
-5
No files found.
src/nas/3gpp_24.501.h
View file @
7efeaece
...
...
@@ -75,8 +75,9 @@ extern "C" {
#define ULNAS_TRANSPORT 0b01100111
#define DLNAS_TRANSPORT 0b01101000
//0b11******
//5GS Session Management Messages
/*
enum pdu_session_message_e {
PDU_SESSION_ESTABLISHMENT_REQUEST = 193,
PDU_SESSION_ESTABLISHMENT_ACCEPT = 194,
...
...
@@ -94,27 +95,29 @@ enum pdu_session_message_e {
PDU_SESSION_RELEASE_COMMAND = 211,
PDU_SESSION_RELEASE_COMPLETE = 212
};
*/
#define PDU_SESSION_ESTABLISHMENT_REQUEST 0b11000001
#define PDU_SESSION_ESTABLISHMENT_ACCPET 0b11000010
#define PDU_SESSION_ESTABLISHMENT_REJECT 0b11000011
#define PDU
SessionEstablishmentRequest 0b110000
01
#define PDU
SessionEstablishmentAccept 0b110000
10
#define PDU
SessionEstablishmentReject 0b110000
11
#define PDU
_SESSION_AUTHENTICATION_COMMAND 0b110001
01
#define PDU
_SESSION_AUTHENTICATION_COMPLETE 0b110001
10
#define PDU
_SESSION_AUTHENTICATION_RESULT 0b110001
11
#define PDUSessionAuthenticationCommand 0b11000101
#define PDUSessionAuthenticationComplete 0b11000110
#define PDUSessionAuthenticationResult 0b11000111
#define PDU_SESSION_MODIFICATION_REQUEST 0b11001001
#define PDU_SESSION_MODIFICATION_REJECT 0b11001010
#define PDU_SESSION_MODIFICATION_COMMAND 0b11001011
#define PDU_SESSION_MODIFICATION_COMPLETE 0b11001100
#define PDU_SESSION_MODIFICATION_COMMANDREJECT 0b11001101
#define PDUSessionModificationRequest 0b11001001
#define PDUSessionModificationReject 0b11001010
#define PDUSessionModificationCommand 0b11001011
#define PDUSessionModificationComplete 0b11001100
#define PDUSessionModificationCommandReject 0b11001101
#define PDU_SESSION_RELEASE_REQUEST 0b11010001
#define PDU_SESSION_RELEASE_REJECT 0b11010010
#define PDU_SESSION_RELEASE_COMMAND 0b11010011
#define PDU_SESSION_RELEASE_COMPLETE 0b11010100
#define PDUSessionReleaseRequest 0b11010001
#define PDUSessionReleaseReject 0b11010010
#define PDUSessionReleaseCommand 0b11010011
#define PDUSessionReleaseComplete 0b11010100
#define _5GSM_STAUS 0b11010110
#define _5GSMStatus 0b11010110
// 9.11.3.47 Request type
...
...
src/nas/sm/msg/sm_msg.c
View file @
7efeaece
#include "common_types.h"
#include "sm_msg.h"
#include "log.h"
//
#include "log.h"
#include "TLVDecoder.h"
#include "TLVEncoder.h"
#include "log.h"
/****************************************************************************/
...
...
@@ -317,8 +316,8 @@ _fivegsm_msg_decode_header (
/*
* Check the protocol discriminator
*/
if
(
header
->
extended_protocol_discriminator
!=
FIVE
GS_SESSION_MANAGEMENT_MESSAGES
)
{
OAILOG_ERROR
(
LOG_NAS
,
"SM-MSG - extended protocol discriminator: 0x%x
\n
"
,
header
->
extended_protocol_discriminator
);
if
(
header
->
extended_protocol_discriminator
!=
EPD_5
GS_SESSION_MANAGEMENT_MESSAGES
)
{
//
OAILOG_ERROR (LOG_NAS, "SM-MSG - extended protocol discriminator: 0x%x\n", header->extended_protocol_discriminator);
return
(
TLV_PROTOCOL_NOT_SUPPORTED
);
}
...
...
@@ -361,7 +360,7 @@ _fivegsm_msg_encode_header (
/*
* Check the protocol discriminator
*/
else
if
(
header
->
extended_protocol_discriminator
!=
FIVE
GS_SESSION_MANAGEMENT_MESSAGES
)
{
else
if
(
header
->
extended_protocol_discriminator
!=
EPD_5
GS_SESSION_MANAGEMENT_MESSAGES
)
{
//OAILOG_ERROR (LOG_NAS, "SM-MSG - Unexpected protocol discriminator: 0x%x\n", header->extended_protocol_discriminator);
return
(
TLV_PROTOCOL_NOT_SUPPORTED
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment