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
4686e7e4
Commit
4686e7e4
authored
Jan 05, 2023
by
Tien Thinh NGUYEN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue for 5GMMCapability
parent
734434ca
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
src/nas/ies/5GMMCapability.cpp
src/nas/ies/5GMMCapability.cpp
+1
-2
src/nas/ies/5GMMCapability.hpp
src/nas/ies/5GMMCapability.hpp
+1
-0
src/nas/ies/Type4NasIe.cpp
src/nas/ies/Type4NasIe.cpp
+1
-2
src/nas/msgs/RegistrationRequest.cpp
src/nas/msgs/RegistrationRequest.cpp
+2
-1
No files found.
src/nas/ies/5GMMCapability.cpp
View file @
4686e7e4
...
...
@@ -97,8 +97,7 @@ int _5GMMCapability::decodeFromBuffer(uint8_t* buf, int len, bool is_option) {
Logger
::
nas_mm
().
debug
(
"Decoding _5GMMCapability IE"
);
if
(
is_option
)
{
DECODE_U8
(
buf
+
decoded_size
,
octet
,
decoded_size
);
iei_
=
std
::
optional
<
uint8_t
>
(
octet
);
DECODE_U8
(
buf
+
decoded_size
,
iei_
,
decoded_size
);
}
DECODE_U8
(
buf
+
decoded_size
,
length
,
decoded_size
);
...
...
src/nas/ies/5GMMCapability.hpp
View file @
4686e7e4
...
...
@@ -22,6 +22,7 @@
#ifndef _5GMM_CAPABILITY_H_
#define _5GMM_CAPABILITY_H_
#include <optional>
#include <stdint.h>
constexpr
uint8_t
k5gmmCapabilityMinimumLength
=
3
;
...
...
src/nas/ies/Type4NasIe.cpp
View file @
4686e7e4
...
...
@@ -77,8 +77,7 @@ int Type4NasIe::Encode(uint8_t* buf, const int& len) {
}
//------------------------------------------------------------------------------
int
Type4NasIe
::
Decode
(
const
uint8_t
*
const
buf
,
const
int
&
len
,
bool
is_iei
=
false
)
{
int
Type4NasIe
::
Decode
(
const
uint8_t
*
const
buf
,
const
int
&
len
,
bool
is_iei
)
{
Logger
::
nas_mm
().
debug
(
"Decoding %s"
,
GetIeName
().
c_str
());
if
(
!
Validate
(
len
))
return
KEncodeDecodeError
;
...
...
src/nas/msgs/RegistrationRequest.cpp
View file @
4686e7e4
...
...
@@ -197,7 +197,8 @@ void RegistrationRequest::set5GMMCapability(uint8_t value) {
//------------------------------------------------------------------------------
bool
RegistrationRequest
::
get5GMMCapability
(
uint8_t
&
value
)
{
if
(
ie_5g_mm_capability
.
has_value
())
{
value
=
ie_5g_mm_capability
.
value
().
getValue
();
value
=
ie_5g_mm_capability
.
value
().
getOctet3
();
// TODO: get multiple octets
return
true
;
}
else
return
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