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
17fcb684
Commit
17fcb684
authored
Jun 01, 2024
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PNF P7 packing: enlarge buffer
parent
cc6bac70
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
nfapi/open-nFAPI/nfapi/src/nfapi_p7.c
nfapi/open-nFAPI/nfapi/src/nfapi_p7.c
+3
-2
nfapi/open-nFAPI/vnf/src/vnf_p7.c
nfapi/open-nFAPI/vnf/src/vnf_p7.c
+1
-1
No files found.
nfapi/open-nFAPI/nfapi/src/nfapi_p7.c
View file @
17fcb684
...
@@ -2091,8 +2091,9 @@ static uint8_t pack_tx_data_pdu_list_value(void *tlv, uint8_t **ppWritePackedMsg
...
@@ -2091,8 +2091,9 @@ static uint8_t pack_tx_data_pdu_list_value(void *tlv, uint8_t **ppWritePackedMsg
switch
(
value
->
TLVs
[
i
].
tag
)
{
switch
(
value
->
TLVs
[
i
].
tag
)
{
case
0
:
{
case
0
:
{
if
(
!
pusharray32
(
value
->
TLVs
[
i
].
value
.
direct
,
16384
,
(
value
->
TLVs
[
i
].
length
+
3
)
/
4
,
ppWritePackedMsg
,
end
))
{
uint32_t
len32
=
(
value
->
TLVs
[
i
].
length
+
3
)
/
4
;
NFAPI_TRACE
(
NFAPI_TRACE_ERROR
,
"%s():%d. value->TLVs[i].length %d
\n
"
,
__FUNCTION__
,
__LINE__
,
value
->
TLVs
[
i
].
length
);
if
(
!
pusharray32
(
value
->
TLVs
[
i
].
value
.
direct
,
sizeof
(
value
->
TLVs
[
i
].
value
.
direct
),
len32
,
ppWritePackedMsg
,
end
))
{
NFAPI_TRACE
(
NFAPI_TRACE_ERROR
,
"%s():%d. value->TLVs[i].length %d len32 %u max %lu pos %p end %p bytes %lu
\n
"
,
__FUNCTION__
,
__LINE__
,
value
->
TLVs
[
i
].
length
,
len32
,
sizeof
(
value
->
TLVs
[
i
].
value
.
direct
),
*
ppWritePackedMsg
,
end
,
end
-
*
ppWritePackedMsg
);
return
0
;
return
0
;
}
}
break
;
break
;
...
...
nfapi/open-nFAPI/vnf/src/vnf_p7.c
View file @
17fcb684
...
@@ -479,7 +479,7 @@ int vnf_nr_p7_pack_and_send_p7_msg(vnf_p7_t* vnf_p7, nfapi_p7_message_header_t*
...
@@ -479,7 +479,7 @@ int vnf_nr_p7_pack_and_send_p7_msg(vnf_p7_t* vnf_p7, nfapi_p7_message_header_t*
if
(
p7_connection
)
if
(
p7_connection
)
{
{
int
send_result
=
0
;
int
send_result
=
0
;
uint8_t
buffer
[
1024
*
32
];
uint8_t
buffer
[
65536
];
header
->
m_segment_sequence
=
NFAPI_P7_SET_MSS
(
0
,
0
,
p7_connection
->
sequence_number
);
header
->
m_segment_sequence
=
NFAPI_P7_SET_MSS
(
0
,
0
,
p7_connection
->
sequence_number
);
...
...
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