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
bf0e6484
Commit
bf0e6484
authored
Oct 10, 2019
by
yunshou-yang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sm: update---#ifndef...#define...#endif
parent
d680a323
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
22 deletions
+21
-22
src/nas/3gpp_24.501.h
src/nas/3gpp_24.501.h
+4
-20
src/nas/nas_message.c
src/nas/nas_message.c
+2
-2
src/nas/sm/msg/PDUSessionAuthenticationCommand.h
src/nas/sm/msg/PDUSessionAuthenticationCommand.h
+5
-0
src/nas/sm/msg/PDUSessionAuthenticationComplete.h
src/nas/sm/msg/PDUSessionAuthenticationComplete.h
+5
-0
src/nas/sm/msg/PDUSessionAuthenticationResult.h
src/nas/sm/msg/PDUSessionAuthenticationResult.h
+5
-0
No files found.
src/nas/3gpp_24.501.h
View file @
bf0e6484
...
...
@@ -75,27 +75,11 @@ extern "C" {
#define ULNAS_TRANSPORT 0b01100111
#define DLNAS_TRANSPORT 0b01101000
/* Message Type for Session Management */
//0b11******
//5GS Session Management Messages
/*
enum pdu_session_message_e {
PDU_SESSION_ESTABLISHMENT_REQUEST = 193,
PDU_SESSION_ESTABLISHMENT_ACCEPT = 194,
PDU_SESSION_ESTABLISHMENT_REJECT = 195,
PDU_SESSION_AUTHENTICATION_COMMAND = 197,
PDU_SESSION_AUTHENTICATION_COMPLETE = 198,
PDU_SESSION_AUTHENTICATION_RESULT = 199,
PDU_SESSION_MODIFICATION_REQUEST = 201,
PDU_SESSION_MODIFICATION_REJECT = 202,
PDU_SESSION_MODIFICATION_COMMAND = 203,
PDU_SESSION_MODIFICATION_COMPLETE = 204,
PDU_SESSION_MODIFICATION_COMMAND_REJECT = 205,
PDU_SESSION_RELEASE_REQUEST = 209,
PDU_SESSION_RELEASE_REJECT = 210,
PDU_SESSION_RELEASE_COMMAND = 211,
PDU_SESSION_RELEASE_COMPLETE = 212
};
*/
#define PDU_SESSION_ESTABLISHMENT_REQUEST 0b11000001
#define PDU_SESSION_ESTABLISHMENT_ACCPET 0b11000010
...
...
@@ -116,7 +100,7 @@ enum pdu_session_message_e {
#define PDU_SESSION_RELEASE_COMMAND 0b11010011
#define PDU_SESSION_RELEASE_COMPLETE 0b11010100
#define _5GSM_STA
T
US 0b11010110
#define _5GSM_STAUS 0b11010110
...
...
src/nas/nas_message.c
View file @
bf0e6484
...
...
@@ -479,7 +479,7 @@ static int _nas_message_plain_encode (
/*
* Encode EPS Session Management L3 message
*/
//
bytes = fivegsm_msg_encode ((SM_msg *) (&msg->sm), (uint8_t *) buffer, length);
bytes
=
fivegsm_msg_encode
((
SM_msg
*
)
(
&
msg
->
sm
),
(
uint8_t
*
)
buffer
,
length
);
}
else
{
/*
* Discard L3 messages with not supported protocol discriminator
...
...
@@ -1016,7 +1016,7 @@ static int _nas_message_plain_decode (
/*
* Decode 5G Session Management L3 message
*/
//bytes = sm_msg_decode (&msg->e
sm, (uint8_t *) buffer, length);
bytes
=
sm_msg_decode
(
&
msg
->
sm
,
(
uint8_t
*
)
buffer
,
length
);
printf
(
"
\n
dukl esm_msg_decode
\n
"
);
}
else
{
/*
...
...
src/nas/sm/msg/PDUSessionAuthenticationCommand.h
View file @
bf0e6484
#ifndef _PDUSESSIONAUTHENTICATIONCOMMAND_H_
#define _PDUSESSIONAUTHENTICATIONCOMMAND_H_
#include <stdint.h>
#include "ExtendedProtocolDiscriminator.h"
...
...
@@ -44,3 +47,5 @@ typedef struct pdu_session_authentication_command_msg_tag{
int
decode_pdu_session_authentication_command
(
pdu_session_authentication_command_msg
*
pdusessionauthenticationcommand
,
uint8_t
*
buffer
,
uint32_t
len
);
int
encode_pdu_session_authentication_command
(
pdu_session_authentication_command_msg
*
pdusessionauthenticationcommand
,
uint8_t
*
buffer
,
uint32_t
len
);
#endif
src/nas/sm/msg/PDUSessionAuthenticationComplete.h
View file @
bf0e6484
#ifndef _PDUSESSIONAUTHENTICATIONCOMPLETE_H_
#define _PDUSESSIONAUTHENTICATIONCOMPLETE_H_
#include <stdint.h>
#include "ExtendedProtocolDiscriminator.h"
...
...
@@ -44,3 +47,5 @@ typedef struct pdu_session_authentication_complete_msg_tag{
int
decode_pdu_session_authentication_complete
(
pdu_session_authentication_complete_msg
*
pdusessionauthenticationcomplete
,
uint8_t
*
buffer
,
uint32_t
len
);
int
encode_pdu_session_authentication_complete
(
pdu_session_authentication_complete_msg
*
pdusessionauthenticationcomplete
,
uint8_t
*
buffer
,
uint32_t
len
);
#endif
src/nas/sm/msg/PDUSessionAuthenticationResult.h
View file @
bf0e6484
#ifndef _PDUSESSIONAUTHENTICATIONRESULT_H_
#define _PDUSESSIONAUTHENTICATIONRESULT_H_
#include <stdint.h>
#include "ExtendedProtocolDiscriminator.h"
...
...
@@ -47,3 +50,5 @@ typedef struct pdu_session_authentication_result_msg_tag{
int
decode_pdu_session_authentication_result
(
pdu_session_authentication_result_msg
*
pdusessionauthenticationresult
,
uint8_t
*
buffer
,
uint32_t
len
);
int
encode_pdu_session_authentication_result
(
pdu_session_authentication_result_msg
*
pdusessionauthenticationresult
,
uint8_t
*
buffer
,
uint32_t
len
);
#endif
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