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
9acb4891
Commit
9acb4891
authored
Feb 10, 2022
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix_ladn_indication_2
parent
85ebcd38
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/nas/ies/LADN_Indication.cpp
src/nas/ies/LADN_Indication.cpp
+4
-4
No files found.
src/nas/ies/LADN_Indication.cpp
View file @
9acb4891
...
...
@@ -74,8 +74,8 @@ int LADN_Indication::encode2buffer(uint8_t* buf, int len) {
}
int
encoded_size
=
0
;
if
(
_iei
)
{
ENCODE_U8
(
buf
,
_iei
,
encoded_size
);
ENCODE_U16
(
buf
,
length
-
3
,
encoded_size
);
ENCODE_U8
(
buf
+
encoded_size
,
_iei
,
encoded_size
);
ENCODE_U16
(
buf
+
encoded_size
,
length
-
3
,
encoded_size
);
for
(
int
i
=
0
;
i
<
LADN
.
size
();
i
++
)
{
*
(
buf
+
encoded_size
)
=
blength
(
LADN
.
at
(
i
));
encoded_size
++
;
...
...
@@ -99,13 +99,13 @@ int LADN_Indication::decodefrombuffer(uint8_t* buf, int len, bool is_option) {
decoded_size
++
;
}
length
=
0
;
DECODE_U16
(
buf
,
length
,
decoded_size
);
DECODE_U16
(
buf
+
decoded_size
,
length
,
decoded_size
);
Logger
::
nas_mm
().
debug
(
"Decoded LADN_Indication len (%d)"
,
length
);
int
len_ie
=
length
;
uint8_t
len_dnn
=
0
;
bstring
dnn
;
while
(
len_ie
)
{
DECODE_U8
(
buf
,
len_dnn
,
decoded_size
);
DECODE_U8
(
buf
+
decoded_size
,
len_dnn
,
decoded_size
);
len_ie
--
;
decode_bstring
(
&
dnn
,
len_dnn
,
(
buf
+
decoded_size
),
len
-
decoded_size
);
decoded_size
+=
len_dnn
;
...
...
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