Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
canghaiwuhen
OpenXG-RAN
Commits
b0120a6e
Commit
b0120a6e
authored
Aug 05, 2014
by
Lionel Gauthier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@5663
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
b1dd4a3b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
openair-cn/NAS/EURECOM-NAS/src/ies/EsmMessageContainer.c
openair-cn/NAS/EURECOM-NAS/src/ies/EsmMessageContainer.c
+2
-0
openair-cn/NAS/EURECOM-NAS/src/ies/UeNetworkCapability.c
openair-cn/NAS/EURECOM-NAS/src/ies/UeNetworkCapability.c
+4
-1
No files found.
openair-cn/NAS/EURECOM-NAS/src/ies/EsmMessageContainer.c
View file @
b0120a6e
...
...
@@ -35,6 +35,8 @@
#include "EsmMessageContainer.h"
#include "nas_log.h"
#define NAS_DEBUG 1
int
decode_esm_message_container
(
EsmMessageContainer
*
esmmessagecontainer
,
uint8_t
iei
,
uint8_t
*
buffer
,
uint32_t
len
)
{
int
decoded
=
0
;
...
...
openair-cn/NAS/EURECOM-NAS/src/ies/UeNetworkCapability.c
View file @
b0120a6e
...
...
@@ -46,6 +46,7 @@ int decode_ue_network_capability(UeNetworkCapability *uenetworkcapability, uint8
}
DECODE_U8
(
buffer
+
decoded
,
ielen
,
decoded
);
LOG_TRACE
(
INFO
,
"decode_ue_network_capability len = %d"
,
ielen
);
CHECK_LENGTH_DECODER
(
len
-
decoded
,
ielen
);
uenetworkcapability
->
eea
=
*
(
buffer
+
decoded
);
decoded
++
;
...
...
@@ -62,7 +63,7 @@ int decode_ue_network_capability(UeNetworkCapability *uenetworkcapability, uint8
uenetworkcapability
->
uia
=
*
(
buffer
+
decoded
)
&
0x7f
;
decoded
++
;
if
(
ielen
>
=
4
)
{
if
(
ielen
>
4
)
{
uenetworkcapability
->
spare
=
(
*
(
buffer
+
decoded
)
>>
5
)
&
0x7
;
uenetworkcapability
->
csfb
=
(
*
(
buffer
+
decoded
)
>>
4
)
&
0x1
;
uenetworkcapability
->
lpp
=
(
*
(
buffer
+
decoded
)
>>
3
)
&
0x1
;
...
...
@@ -73,9 +74,11 @@ int decode_ue_network_capability(UeNetworkCapability *uenetworkcapability, uint8
}
}
}
LOG_TRACE
(
INFO
,
"uenetworkcapability decoded=%u
\n
"
,
decoded
);
if
((
ielen
+
2
)
!=
decoded
)
{
decoded
=
ielen
+
1
+
(
iei
>
0
?
1
:
0
)
/* Size of header for this IE */
;
LOG_TRACE
(
INFO
,
"uenetworkcapability then decoded=%u
\n
"
,
decoded
);
}
#if defined (NAS_DEBUG)
...
...
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