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
spbro
OpenXG-RAN
Commits
d27d1933
Commit
d27d1933
authored
May 24, 2024
by
Rúben Soares da Silva
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix P5 messages memory leaks ( CONFIG.request / CONFIG.response )
parent
f6a039f3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
nfapi/oai_integration/aerial/fapi_vnf_p5.c
nfapi/oai_integration/aerial/fapi_vnf_p5.c
+1
-3
nfapi/open-nFAPI/vnf/src/vnf.c
nfapi/open-nFAPI/vnf/src/vnf.c
+1
-3
No files found.
nfapi/oai_integration/aerial/fapi_vnf_p5.c
View file @
d27d1933
...
...
@@ -351,12 +351,10 @@ int aerial_nr_send_config_request(nfapi_vnf_config_t *config, int p5_idx)
nfapi_p4_p5_message_header_t
*
msg
=
&
req
->
header
;
uint16_t
msg_len
=
sizeof
(
nfapi_nr_config_request_scf_t
);
nfapi_p4_p5_message_header_t
*
msgFAPI
=
calloc
(
1
,
msg_len
);
memcpy
(
msgFAPI
,
&
req
->
header
,
msg_len
);
uint8_t
tx_messagebufferFAPI
[
sizeof
(
_this
->
tx_message_buffer
)];
int
packedMessageLengthFAPI
=
-
1
;
packedMessageLengthFAPI
=
fapi_nr_p5_message_pack
(
msg
FAPI
,
msg_len
,
tx_messagebufferFAPI
,
sizeof
(
tx_messagebufferFAPI
),
&
_this
->
_public
.
codec_config
);
fapi_nr_p5_message_pack
(
msg
,
msg_len
,
tx_messagebufferFAPI
,
sizeof
(
tx_messagebufferFAPI
),
&
_this
->
_public
.
codec_config
);
aerial_send_P5_msg
(
tx_messagebufferFAPI
,
packedMessageLengthFAPI
,
msg
);
...
...
nfapi/open-nFAPI/vnf/src/vnf.c
View file @
d27d1933
...
...
@@ -1529,13 +1529,11 @@ int vnf_nr_pack_and_send_p5_message(vnf_t* vnf, uint16_t p5_idx, nfapi_p4_p5_mes
#ifdef ENABLE_AERIAL
// In case it is a FAPI message, create 2 messages, one with nFAPI header for OAI PNF and one with no nFAPI header for Aerial
// L1
nfapi_p4_p5_message_header_t
*
msgFAPI
=
calloc
(
1
,
msg_len
);
memcpy
(
msgFAPI
,
msg
,
msg_len
);
// create FAPI tx_buffer
uint8_t
tx_messagebufferFAPI
[
sizeof
(
vnf
->
tx_message_buffer
)];
int
packedMessageLengthFAPI
=
-
1
;
packedMessageLengthFAPI
=
fapi_nr_p5_message_pack
(
msg
FAPI
,
msg_len
,
tx_messagebufferFAPI
,
sizeof
(
tx_messagebufferFAPI
),
&
vnf
->
_public
.
codec_config
);
fapi_nr_p5_message_pack
(
msg
,
msg_len
,
tx_messagebufferFAPI
,
sizeof
(
tx_messagebufferFAPI
),
&
vnf
->
_public
.
codec_config
);
return
aerial_send_P5_msg
(
tx_messagebufferFAPI
,
packedMessageLengthFAPI
,
msg
);
#else
return
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