Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
oai
openairinterface5G
Commits
2cf40606
Commit
2cf40606
authored
6 years ago
by
Robert Schmidt
Browse files
Options
Downloads
Patches
Plain Diff
Implement stats_reply-specific destroy function
parent
86d8e214
No related branches found
No related tags found
4 merge requests
!650
Release v1.1.0 Candidate
,
!588
Develop nr merge
,
!551
Develop Integration Branch 2019 week 13
,
!524
Feature 127 protocol split
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
openair2/ENB_APP/flexran_agent_common.h
+1
-0
1 addition, 0 deletions
openair2/ENB_APP/flexran_agent_common.h
openair2/ENB_APP/flexran_agent_handler.c
+21
-1
21 additions, 1 deletion
openair2/ENB_APP/flexran_agent_handler.c
with
22 additions
and
1 deletion
openair2/ENB_APP/flexran_agent_common.h
+
1
−
0
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
);
...
...
This diff is collapsed.
Click to expand it.
openair2/ENB_APP/flexran_agent_handler.c
+
21
−
1
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
))
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment