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
1
Merge Requests
1
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-RAN
Commits
40f985a9
Commit
40f985a9
authored
Jan 21, 2021
by
Cedric Roux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macpdu2wireshark: add UE id into scheduling request logging
Same logic as previous commit, same caveats.
parent
23b24a3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
common/utils/T/tracer/macpdu2wireshark.c
common/utils/T/tracer/macpdu2wireshark.c
+11
-2
No files found.
common/utils/T/tracer/macpdu2wireshark.c
View file @
40f985a9
...
@@ -149,8 +149,17 @@ void trace_lte(ev_data *d, int direction, int rnti_type, int rnti,
...
@@ -149,8 +149,17 @@ void trace_lte(ev_data *d, int direction, int rnti_type, int rnti,
PUTC
(
&
d
->
buf
,
MAC_LTE_SR_TAG
);
PUTC
(
&
d
->
buf
,
MAC_LTE_SR_TAG
);
PUTC
(
&
d
->
buf
,
0
);
/* number of items byte 1 */
PUTC
(
&
d
->
buf
,
0
);
/* number of items byte 1 */
PUTC
(
&
d
->
buf
,
1
);
/* number of items byte 2 */
PUTC
(
&
d
->
buf
,
1
);
/* number of items byte 2 */
PUTC
(
&
d
->
buf
,
0
);
/* ueid byte 1 (not used, let's put 0) */
PUTC
(
&
d
->
buf
,
0
);
/* ueid byte 2 (not used, let's put 0) */
/* put UE id */
if
(
sr_rnti
<
0
||
sr_rnti
>
65535
)
{
printf
(
"bad sr rnti!
\n
"
);
exit
(
1
);
}
/* if no UE id allocated for this rnti then allocate the next one */
if
(
d
->
lte_rnti_to_ueid
[
sr_rnti
]
==
-
1
)
{
d
->
lte_rnti_to_ueid
[
sr_rnti
]
=
d
->
lte_next_ue_id
;
d
->
lte_next_ue_id
++
;
}
PUTC
(
&
d
->
buf
,
(
d
->
lte_rnti_to_ueid
[
sr_rnti
]
>>
8
)
&
255
);
PUTC
(
&
d
->
buf
,
d
->
lte_rnti_to_ueid
[
sr_rnti
]
&
255
);
PUTC
(
&
d
->
buf
,
(
sr_rnti
>>
8
)
&
255
);
PUTC
(
&
d
->
buf
,
(
sr_rnti
>>
8
)
&
255
);
PUTC
(
&
d
->
buf
,
sr_rnti
&
255
);
PUTC
(
&
d
->
buf
,
sr_rnti
&
255
);
}
}
...
...
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