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
e19cee63
Commit
e19cee63
authored
Sep 15, 2020
by
Andrew Burger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hexdumping packed buffer
parent
9339b063
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
openair2/PHY_INTERFACE/phy_stub_UE.c
openair2/PHY_INTERFACE/phy_stub_UE.c
+4
-2
No files found.
openair2/PHY_INTERFACE/phy_stub_UE.c
View file @
e19cee63
...
...
@@ -1312,6 +1312,7 @@ const char *hexdump(const void *data, size_t data_len, char *out, size_t out_len
{
int
encoded_size
=
-
1
;
char
buffer
[
1024
];
char
dump
[
1024
];
switch
(
msg_type
)
{
case
NFAPI_RACH_INDICATION
:
...
...
@@ -1327,9 +1328,10 @@ const char *hexdump(const void *data, size_t data_len, char *out, size_t out_len
break
;
case
NFAPI_RX_ULSCH_INDICATION
:
encoded_size
=
nfapi_p7_message_pack
(
&
UL
->
rx_ind
,
buffer
,
sizeof
(
buffer
),
NULL
);
LOG_I
(
MAC
,
"RX_IND sent to Proxy, Size: %d Frame %d Subframe %d rx_ind.tl.length: %u num_pdus: %u
\n
"
,
LOG_I
(
MAC
,
"RX_IND sent to Proxy, Size: %d Frame %d Subframe %d rx_ind.tl.length: %u num_pdus: %u
\n
HexDUMP %s
\n
"
,
encoded_size
,
NFAPI_SFNSF2SFN
(
UL
->
rx_ind
.
sfn_sf
),
NFAPI_SFNSF2SF
(
UL
->
rx_ind
.
sfn_sf
),
UL
->
rx_ind
.
rx_indication_body
.
tl
.
length
,
UL
->
rx_ind
.
rx_indication_body
.
number_of_pdus
);
UL
->
rx_ind
.
rx_indication_body
.
tl
.
length
,
UL
->
rx_ind
.
rx_indication_body
.
number_of_pdus
,
hexdump
(
buffer
,
encoded_size
,
dump
,
sizeof
(
dump
)));
nfapi_rx_indication_t
test_ind
;
if
(
nfapi_p7_message_unpack
(
buffer
,
encoded_size
,
&
test_ind
,
sizeof
(
test_ind
),
NULL
)
<
0
)
{
...
...
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