Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-AMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
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-AMF
Commits
2db5addf
Commit
2db5addf
authored
Jan 16, 2023
by
Tien Thinh NGUYEN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Service Accept
parent
9e1bf1e5
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
251 additions
and
45 deletions
+251
-45
src/nas/msgs/RegistrationComplete.cpp
src/nas/msgs/RegistrationComplete.cpp
+3
-4
src/nas/msgs/ServiceAccept.cpp
src/nas/msgs/ServiceAccept.cpp
+215
-24
src/nas/msgs/ServiceAccept.hpp
src/nas/msgs/ServiceAccept.hpp
+25
-13
src/nas/msgs/ULNASTransport.cpp
src/nas/msgs/ULNASTransport.cpp
+8
-4
No files found.
src/nas/msgs/RegistrationComplete.cpp
View file @
2db5addf
...
...
@@ -102,11 +102,10 @@ int RegistrationComplete::Decode(
Logger
::
nas_mm
().
debug
(
"Next IEI (0x%x)"
,
octet
);
}
break
;
default:
{
Logger
::
nas_mm
().
debug
(
"Unknown IEI"
);
// Stop
the decoding process
Logger
::
nas_mm
().
warn
(
"Unknown IEI 0x%x, stop decoding..."
,
octet
);
// Stop
decoding
octet
=
0x00
;
break
;
}
}
break
;
}
}
Logger
::
nas_mm
().
debug
(
...
...
src/nas/msgs/ServiceAccept.cpp
View file @
2db5addf
This diff is collapsed.
Click to expand it.
src/nas/msgs/ServiceAccept.hpp
View file @
2db5addf
...
...
@@ -19,39 +19,51 @@
* contact@openairinterface.org
*/
/*! \file
\brief
\author Keliang DU, BUPT
\date 2020
\email: contact@openairinterface.org
*/
#ifndef _SERVICE_ACCEPT_H_
#define _SERVICE_ACCEPT_H_
#include <stdint.h>
#include <string>
#include "NasIeHeader.hpp"
namespace
nas
{
class
ServiceAccept
{
class
ServiceAccept
:
public
NasMmPlainHeader
{
public:
ServiceAccept
();
~
ServiceAccept
();
public:
void
SetHeader
(
uint8_t
security_header_type
);
int
Encode
(
uint8_t
*
buf
,
int
len
);
int
Decode
(
uint8_t
*
buf
,
int
len
);
void
setPDU_session_status
(
uint16_t
value
);
// TODO: Get
void
setPDU_session_reactivation_result
(
uint16_t
);
int
Encode
(
uint8_t
*
buf
,
int
len
);
// TODO: Get
void
setPDU_session_reactivation_result_error_cause
(
uint8_t
session_id
,
uint8_t
value
);
// TODO: Get
void
SetEapMessage
(
bstring
eap
);
// TODO: Get
void
setT3448_Value
(
uint8_t
unit
,
uint8_t
value
);
// TODO: Get
private:
NasMmPlainHeader
*
plain_header
;
PDUSessionStatus
*
ie_PDU_session_status
;
PDU_Session_Reactivation_Result
*
ie_session_reactivation_result
;
std
::
optional
<
PDUSessionStatus
>
ie_PDU_session_status
;
// Optional
std
::
optional
<
PDU_Session_Reactivation_Result
>
ie_pdu_session_reactivation_result
;
// Optional
std
::
optional
<
PDU_Session_Reactivation_Result_Error_Cause
>
ie_pdu_session_reactivation_result_error_cause
;
// Optional
std
::
optional
<
EapMessage
>
ie_eap_message
;
// Optional
std
::
optional
<
GprsTimer3
>
ie_T3448_value
;
// Optional
};
}
// namespace nas
...
...
src/nas/msgs/ULNASTransport.cpp
View file @
2db5addf
...
...
@@ -463,14 +463,18 @@ int ULNASTransport::Decode(uint8_t* buf, int len) {
default:
{
// TODO:
if
(
flag
)
{
Logger
::
nas_mm
().
debug
(
"Unknown IEI (0x%x)"
,
octet
);
decoded_size
++
;
return
decoded_size
;
//
Logger::nas_mm().debug("Unknown IEI (0x%x)", octet);
//
decoded_size++;
//
return decoded_size;
//*(buf + decoded_size) = 0x00;
// octet = *(buf + decoded_size);
// Logger::nas_mm().debug("Next IEI (0x%x)", octet);
Logger
::
nas_mm
().
warn
(
"Unknown IEI 0x%x, stop decoding..."
,
octet
);
// Stop decoding
octet
=
0x00
;
}
}
}
break
;
}
flag
=
false
;
}
...
...
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