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
alex037yang
OpenXG-RAN
Commits
2cf40606
Commit
2cf40606
authored
Oct 29, 2018
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement stats_reply-specific destroy function
parent
86d8e214
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
1 deletion
+22
-1
openair2/ENB_APP/flexran_agent_common.h
openair2/ENB_APP/flexran_agent_common.h
+1
-0
openair2/ENB_APP/flexran_agent_handler.c
openair2/ENB_APP/flexran_agent_handler.c
+21
-1
No files found.
openair2/ENB_APP/flexran_agent_common.h
View file @
2cf40606
...
...
@@ -155,6 +155,7 @@ int flexran_agent_handle_stats(mid_t mod_id, const void *params, Protocol__Flexr
/* Function to be used to handle reply message . */
int
flexran_agent_stats_reply
(
mid_t
enb_id
,
xid_t
xid
,
const
report_config_t
*
report_config
,
Protocol__FlexranMessage
**
msg
);
int
flexran_agent_destroy_stats_reply
(
Protocol__FlexranMessage
*
msg
);
/* Top level Statistics request protocol message constructor and destructor */
int
flexran_agent_stats_request
(
mid_t
mod_id
,
xid_t
xid
,
const
stats_request_config_t
*
report_config
,
Protocol__FlexranMessage
**
msg
);
...
...
openair2/ENB_APP/flexran_agent_handler.c
View file @
2cf40606
...
...
@@ -63,7 +63,7 @@ flexran_agent_message_destruction_callback message_destruction_callback[] = {
flexran_agent_destroy_echo_request
,
flexran_agent_destroy_echo_reply
,
flexran_agent_destroy_stats_request
,
flexran_agent_
mac_
destroy_stats_reply
,
flexran_agent_destroy_stats_reply
,
flexran_agent_mac_destroy_sf_trigger
,
flexran_agent_mac_destroy_sr_info
,
flexran_agent_destroy_enb_config_request
,
...
...
@@ -648,6 +648,26 @@ int flexran_agent_destroy_stats_request(Protocol__FlexranMessage *msg) {
return
-
1
;
}
int
flexran_agent_destroy_stats_reply
(
Protocol__FlexranMessage
*
msg
)
{
if
(
msg
->
msg_case
!=
PROTOCOL__FLEXRAN_MESSAGE__MSG_STATS_REPLY_MSG
)
{
LOG_E
(
FLEXRAN_AGENT
,
"%s(): message is not a msg_stats_reply
\n
"
,
__func__
);
return
-
1
;
}
flexran_agent_mac_destroy_stats_reply
((
Protocol__FlexranMessage
*
)
msg
->
stats_reply_msg
);
// TODO implement rrc_destroy_stats_reply()
//flexran_agent_rrc_destroy_stats_reply(msg->stats_reply_msg);
// TODO implement pdcp_destroy_stats_reply()
//flexran_agent_pdcp_destroy_stats_reply(msg->stats_reply_msg);
free
(
msg
->
stats_reply_msg
->
header
);
free
(
msg
->
stats_reply_msg
->
cell_report
);
free
(
msg
->
stats_reply_msg
->
ue_report
);
free
(
msg
->
stats_reply_msg
);
free
(
msg
);
return
0
;
}
err_code_t
flexran_agent_disable_cont_stats_update
(
mid_t
mod_id
)
{
/*Disable the continuous updates for the MAC*/
if
(
pthread_mutex_lock
(
stats_context
[
mod_id
].
mutex
))
{
...
...
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