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
2e76d726
Commit
2e76d726
authored
Jan 09, 2023
by
Tien Thinh NGUYEN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Payload Container Type
parent
696d8f9b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
7 deletions
+43
-7
src/nas/common/NasIeHeader.hpp
src/nas/common/NasIeHeader.hpp
+1
-1
src/nas/ies/PayloadContainerType.cpp
src/nas/ies/PayloadContainerType.cpp
+42
-0
src/nas/ies/PayloadContainerType.hpp
src/nas/ies/PayloadContainerType.hpp
+0
-6
No files found.
src/nas/common/NasIeHeader.hpp
View file @
2e76d726
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
#include "PDU_Session_Reactivation_Result_Error_Cause.hpp"
#include "PDU_Session_Reactivation_Result_Error_Cause.hpp"
#include "PLMN_List.hpp"
#include "PLMN_List.hpp"
#include "Payload_Container.hpp"
#include "Payload_Container.hpp"
#include "Payload
_Container_
Type.hpp"
#include "Payload
Container
Type.hpp"
#include "Rejected_NSSAI.hpp"
#include "Rejected_NSSAI.hpp"
#include "Release_Assistance_Indication.hpp"
#include "Release_Assistance_Indication.hpp"
#include "Request_Type.hpp"
#include "Request_Type.hpp"
...
...
src/nas/ies/Payload
_Container_
Type.cpp
→
src/nas/ies/Payload
Container
Type.cpp
View file @
2e76d726
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
* contact@openairinterface.org
* contact@openairinterface.org
*/
*/
#include "Payload
_Container_
Type.hpp"
#include "Payload
Container
Type.hpp"
#include "3gpp_24.501.hpp"
#include "3gpp_24.501.hpp"
#include "common_defs.h"
#include "common_defs.h"
...
@@ -40,64 +40,3 @@ PayloadContainerType::PayloadContainerType() : Type1NasIeFormatTv() {
...
@@ -40,64 +40,3 @@ PayloadContainerType::PayloadContainerType() : Type1NasIeFormatTv() {
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
PayloadContainerType
::~
PayloadContainerType
(){};
PayloadContainerType
::~
PayloadContainerType
(){};
/*
//------------------------------------------------------------------------------
void PayloadContainerType::SetValue(const uint8_t value) {
_value = value & 0x0f;
}
//------------------------------------------------------------------------------
uint8_t PayloadContainerType::GetValue() const {
return _value;
}
//------------------------------------------------------------------------------
int PayloadContainerType::Encode(uint8_t* buf, int len) {
Logger::nas_mm().debug("Encoding Payload_Container_Type IE");
if (len < kPayloadContainerTypeLength) {
Logger::nas_mm().error(
"Buffer length is less than the minimum length of this IE (%d octet)",
kPayloadContainerTypeLength);
return KEncodeDecodeError;
}
int encoded_size = 0;
uint8_t octet = 0;
if (_iei) {
octet = (_iei << 4) | (_value & 0x0f);
} else {
octet = (_value & 0x0f);
}
ENCODE_U8(buf + encoded_size, octet, encoded_size);
Logger::nas_mm().debug("Encoded Payload_Container_Type IE");
return encoded_size;
}
//------------------------------------------------------------------------------
int PayloadContainerType::Decode(uint8_t* buf, int len, bool is_option) {
Logger::nas_mm().debug("decoding Payload_Container_Type IE");
if (len < kPayloadContainerTypeLength) {
Logger::nas_mm().error(
"Buffer length is less than the minimum length of this IE (%d octet)",
kPayloadContainerTypeLength);
return KEncodeDecodeError;
}
int decoded_size = 0;
uint8_t octet = 0;
DECODE_U8(buf + decoded_size, octet, decoded_size);
if (is_option) {
_iei = (octet & 0xf0) >> 4;
}
_value = octet & 0x0f;
Logger::nas_mm().debug(
"Decoded Payload_Container_Type (IEI 0x%x, value 0x%x)", _iei, _value);
return decoded_size;
}
*/
src/nas/ies/Payload
_Container_
Type.hpp
→
src/nas/ies/Payload
Container
Type.hpp
View file @
2e76d726
...
@@ -37,12 +37,6 @@ class PayloadContainerType : public Type1NasIeFormatTv {
...
@@ -37,12 +37,6 @@ class PayloadContainerType : public Type1NasIeFormatTv {
PayloadContainerType
(
const
uint8_t
iei
,
uint8_t
value
);
PayloadContainerType
(
const
uint8_t
iei
,
uint8_t
value
);
~
PayloadContainerType
();
~
PayloadContainerType
();
/* void setValue(const uint8_t value);
uint8_t getValue();
int Encode(uint8_t* buf, int len);
int Decode(uint8_t* buf, int len, bool is_option);
*/
private:
private:
};
};
...
...
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