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
d9bf26b9
Commit
d9bf26b9
authored
Dec 05, 2018
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sort FlexRAN statistics by user before sending
parent
62b89f82
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
openair2/ENB_APP/flexran_agent_common.c
openair2/ENB_APP/flexran_agent_common.c
+13
-0
No files found.
openair2/ENB_APP/flexran_agent_common.c
View file @
d9bf26b9
...
...
@@ -531,6 +531,18 @@ int flexran_agent_lc_config_reply(mid_t mod_id, const void *params, Protocol__Fl
* ************************************
*/
int
sort_ue_config
(
const
void
*
a
,
const
void
*
b
)
{
const
Protocol__FlexUeConfig
*
fa
=
a
;
const
Protocol__FlexUeConfig
*
fb
=
b
;
if
(
fa
->
rnti
<
fb
->
rnti
)
return
-
1
;
else
if
(
fa
->
rnti
<
fb
->
rnti
)
return
1
;
return
0
;
}
int
flexran_agent_ue_config_reply
(
mid_t
mod_id
,
const
void
*
params
,
Protocol__FlexranMessage
**
msg
)
{
xid_t
xid
;
...
...
@@ -583,6 +595,7 @@ int flexran_agent_ue_config_reply(mid_t mod_id, const void *params, Protocol__Fl
flexran_agent_fill_mac_ue_config
(
mod_id
,
UE_id
,
ue_config
[
i
]);
}
}
qsort
(
ue_config
,
ue_config_reply_msg
->
n_ue_config
,
sizeof
(
ue_config
[
0
]),
sort_ue_config
);
ue_config_reply_msg
->
ue_config
=
ue_config
;
}
*
msg
=
malloc
(
sizeof
(
Protocol__FlexranMessage
));
...
...
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