Commit bf0e6484 authored by yunshou-yang's avatar yunshou-yang

sm: update---#ifndef...#define...#endif

parent d680a323
......@@ -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_STATUS 0b11010110
#define _5GSM_STAUS 0b11010110
......
......@@ -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->esm, (uint8_t *) buffer, length);
bytes = sm_msg_decode (&msg->sm, (uint8_t *) buffer, length);
printf("\ndukl esm_msg_decode\n");
} else {
/*
......
#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
#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
#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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment