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
lizhongxiao
OpenXG-RAN
Commits
8852bb19
Commit
8852bb19
authored
Sep 15, 2020
by
Andrew Burger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding hexdump logs in unpack
parent
e19cee63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
nfapi/open-nFAPI/nfapi/src/nfapi_p7.c
nfapi/open-nFAPI/nfapi/src/nfapi_p7.c
+15
-1
No files found.
nfapi/open-nFAPI/nfapi/src/nfapi_p7.c
View file @
8852bb19
...
...
@@ -4971,7 +4971,9 @@ static uint8_t unpack_rx_indication_body_value(void* tlv, uint8_t **ppReadPacked
// pdu end is past buffer end
return
0
;
}
char
foo
[
1024
];
NFAPI_TRACE
(
NFAPI_TRACE_ERROR
,
"%s:%d: %s
\n
"
,
__FUNCTION__
,
__LINE__
,
hexdump
(
*
ppReadPackedMsg
,
end
-
*
ppReadPackedMsg
,
foo
,
sizeof
(
foo
)));
if
(
pull16
(
ppReadPackedMsg
,
&
value
->
number_of_pdus
,
end
)
==
0
)
return
0
;
...
...
@@ -4999,6 +5001,8 @@ static uint8_t unpack_rx_indication_body_value(void* tlv, uint8_t **ppReadPacked
nfapi_rx_indication_pdu_t
*
pdu
=
0
;
while
((
uint8_t
*
)(
*
ppReadPackedMsg
)
<
rxBodyEnd
&&
(
uint8_t
*
)(
*
ppReadPackedMsg
)
<
rxPduEnd
)
{
NFAPI_TRACE
(
NFAPI_TRACE_ERROR
,
"%s:%d: %s
\n
"
,
__FUNCTION__
,
__LINE__
,
hexdump
(
*
ppReadPackedMsg
,
end
-
*
ppReadPackedMsg
,
foo
,
sizeof
(
foo
)));
nfapi_tl_t
generic_tl
;
if
(
unpack_tl
(
ppReadPackedMsg
,
&
generic_tl
,
end
)
==
0
)
return
0
;
...
...
@@ -5009,6 +5013,8 @@ static uint8_t unpack_rx_indication_body_value(void* tlv, uint8_t **ppReadPacked
{
pdu
=
&
(
value
->
rx_pdu_list
[
i
++
]);
pdu
->
rx_ue_information
.
tl
=
generic_tl
;
NFAPI_TRACE
(
NFAPI_TRACE_ERROR
,
"%s:%d: %s
\n
"
,
__FUNCTION__
,
__LINE__
,
hexdump
(
*
ppReadPackedMsg
,
end
-
*
ppReadPackedMsg
,
foo
,
sizeof
(
foo
)));
if
(
unpack_rx_ue_information_value
(
&
pdu
->
rx_ue_information
,
ppReadPackedMsg
,
end
)
==
0
)
return
0
;
}
...
...
@@ -5018,6 +5024,8 @@ static uint8_t unpack_rx_indication_body_value(void* tlv, uint8_t **ppReadPacked
if
(
pdu
!=
0
)
{
pdu
->
rx_indication_rel8
.
tl
=
generic_tl
;
NFAPI_TRACE
(
NFAPI_TRACE_ERROR
,
"%s:%d: %s
\n
"
,
__FUNCTION__
,
__LINE__
,
hexdump
(
*
ppReadPackedMsg
,
end
-
*
ppReadPackedMsg
,
foo
,
sizeof
(
foo
)));
if
(
unpack_rx_indication_rel8_value
(
&
pdu
->
rx_indication_rel8
,
ppReadPackedMsg
,
end
)
==
0
)
return
0
;
...
...
@@ -5051,6 +5059,8 @@ static uint8_t unpack_rx_indication_body_value(void* tlv, uint8_t **ppReadPacked
if
(
pdu
!=
0
)
{
pdu
->
rx_indication_rel9
.
tl
=
generic_tl
;
NFAPI_TRACE
(
NFAPI_TRACE_ERROR
,
"%s:%d: %s
\n
"
,
__FUNCTION__
,
__LINE__
,
hexdump
(
*
ppReadPackedMsg
,
end
-
*
ppReadPackedMsg
,
foo
,
sizeof
(
foo
)));
if
(
unpack_rx_indication_rel9_value
(
&
pdu
->
rx_indication_rel9
,
ppReadPackedMsg
,
end
)
==
0
)
return
0
;
}
...
...
@@ -5071,10 +5081,14 @@ static uint8_t unpack_rx_indication_body_value(void* tlv, uint8_t **ppReadPacked
{
uint32_t
length
=
value
->
rx_pdu_list
[
idx
].
rx_indication_rel8
.
length
;
value
->
rx_pdu_list
[
idx
].
data
=
nfapi_p7_allocate
(
length
,
config
);
NFAPI_TRACE
(
NFAPI_TRACE_ERROR
,
"%s:%d: %s
\n
"
,
__FUNCTION__
,
__LINE__
,
hexdump
(
*
ppReadPackedMsg
,
end
-
*
ppReadPackedMsg
,
foo
,
sizeof
(
foo
)));
if
(
pullarray8
(
ppReadPackedMsg
,
value
->
rx_pdu_list
[
idx
].
data
,
length
,
length
,
end
)
==
0
)
{
return
0
;
}
NFAPI_TRACE
(
NFAPI_TRACE_ERROR
,
"%s:%d: %s
\n
"
,
__FUNCTION__
,
__LINE__
,
hexdump
(
*
ppReadPackedMsg
,
end
-
*
ppReadPackedMsg
,
foo
,
sizeof
(
foo
)));
}
}
...
...
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