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
665aac0a
Commit
665aac0a
authored
Dec 04, 2024
by
Nick Hedberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates to match more fapi-compliant tx_data.request
parent
c942fe43
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
nfapi/oai_integration/aerial/fapi_vnf_p7.c
nfapi/oai_integration/aerial/fapi_vnf_p7.c
+4
-2
No files found.
nfapi/oai_integration/aerial/fapi_vnf_p7.c
View file @
665aac0a
...
...
@@ -413,6 +413,7 @@ static int32_t aerial_pack_tx_data_request(void *pMessageBuf,
return
0
;
}
uint32_t
offset
=
0
;
for
(
int
i
=
0
;
i
<
pNfapiMsg
->
Number_of_PDUs
;
i
++
)
{
nfapi_nr_pdu_t
*
value
=
(
nfapi_nr_pdu_t
*
)
&
pNfapiMsg
->
pdu_list
[
i
];
// recalculate PDU_Length for Aerial (leave only the size occupied in the payload buffer afterward)
...
...
@@ -427,13 +428,14 @@ static int32_t aerial_pack_tx_data_request(void *pMessageBuf,
for
(;
k
<
total_number_of_tlvs
;
++
k
)
{
// For Aerial, the TLV tag is always 2
if
(
!
(
push16
(
/*value->TLVs[k].tag*/
2
,
ppWriteBody
,
end
)
&&
push16
(
/*value->TLVs[k].length*/
4
,
ppWriteBody
,
end
)))
{
if
(
!
(
push16
(
/*value->TLVs[k].tag*/
2
,
ppWriteBody
,
end
)
&&
push16
(
value
->
TLVs
[
k
].
length
,
ppWriteBody
,
end
)))
{
return
0
;
}
// value
if
(
!
push32
(
0
,
ppWriteBody
,
end
))
{
if
(
!
push32
(
offset
,
ppWriteBody
,
end
))
{
return
0
;
}
offset
+=
value
->
TLVs
[
k
].
length
;
}
}
...
...
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