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
lizhongxiao
OpenXG-RAN
Commits
2760ef6c
Commit
2760ef6c
authored
Aug 17, 2022
by
Manu Agrawal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Potential fix for memory corruption
parent
7a668c99
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
openair3/SS/ss_eNB_vtp_task.c
openair3/SS/ss_eNB_vtp_task.c
+8
-5
No files found.
openair3/SS/ss_eNB_vtp_task.c
View file @
2760ef6c
...
@@ -149,7 +149,7 @@ static int vtp_send_udp_msg(
...
@@ -149,7 +149,7 @@ static int vtp_send_udp_msg(
if
(
message_p
)
if
(
message_p
)
{
{
LOG_A
(
ENB_APP
,
"Sending UDP_DATA_REQ length %u offset %u buffer %d %d %d"
,
buffer_len
,
buffer_offset
,
buffer
[
0
],
buffer
[
1
],
buffer
[
2
]);
LOG_A
(
ENB_APP
,
"Sending UDP_DATA_REQ length %u offset %u buffer %d %d %d
\n
"
,
buffer_len
,
buffer_offset
,
buffer
[
0
],
buffer
[
1
],
buffer
[
2
]);
udp_data_req_p
=
&
message_p
->
ittiMsg
.
udp_data_req
;
udp_data_req_p
=
&
message_p
->
ittiMsg
.
udp_data_req
;
udp_data_req_p
->
peer_address
=
peerIpAddr
;
udp_data_req_p
->
peer_address
=
peerIpAddr
;
udp_data_req_p
->
peer_port
=
peerPort
;
udp_data_req_p
->
peer_port
=
peerPort
;
...
@@ -204,7 +204,7 @@ static inline void ss_send_vtp_resp(struct VirtualTimeInfo_Type *virtualTime)
...
@@ -204,7 +204,7 @@ static inline void ss_send_vtp_resp(struct VirtualTimeInfo_Type *virtualTime)
req
->
tinfo
.
sfn
=
virtualTime
->
TimingInfo
.
SFN
.
v
.
Number
;
req
->
tinfo
.
sfn
=
virtualTime
->
TimingInfo
.
SFN
.
v
.
Number
;
req
->
tinfo
.
sf
=
virtualTime
->
TimingInfo
.
Subframe
.
v
.
Number
;
req
->
tinfo
.
sf
=
virtualTime
->
TimingInfo
.
Subframe
.
v
.
Number
;
LOG_A
(
ENB_APP
,
"VTP_ACK Command to proxy sent for cell_id: %d SFN %d SF %d"
,
LOG_A
(
ENB_APP
,
"VTP_ACK Command to proxy sent for cell_id: %d SFN %d SF %d
\n
"
,
req
->
header
.
cell_id
,
req
->
tinfo
.
sfn
,
req
->
tinfo
.
sf
);
req
->
header
.
cell_id
,
req
->
tinfo
.
sfn
,
req
->
tinfo
.
sf
);
vtp_send_proxy
((
void
*
)
req
,
sizeof
(
VtpCmdReq_t
));
vtp_send_proxy
((
void
*
)
req
,
sizeof
(
VtpCmdReq_t
));
...
@@ -234,11 +234,14 @@ static inline void ss_enable_vtp()
...
@@ -234,11 +234,14 @@ static inline void ss_enable_vtp()
req
->
header
.
length
=
sizeof
(
proxy_ss_header_t
);
req
->
header
.
length
=
sizeof
(
proxy_ss_header_t
);
req
->
header
.
cell_id
=
SS_context
.
cellId
;
req
->
header
.
cell_id
=
SS_context
.
cellId
;
/* Initialize with zero */
req
->
tinfo
.
sfn
=
0
;
req
->
tinfo
.
sf
=
0
;
LOG_A
(
ENB_APP
,
"VTP_ENABLE Command to proxy sent for cell_id: %d SFN %d SF %d"
,
LOG_A
(
ENB_APP
,
"VTP_ENABLE Command to proxy sent for cell_id: %d SFN %d SF %d
\n
"
,
req
->
header
.
cell_id
);
req
->
header
.
cell_id
,
req
->
tinfo
.
sfn
,
req
->
tinfo
.
sf
);
LOG_A
(
ENB_APP
,
"VTP_ENABLE Command to proxy sent for cell_id: %d"
,
LOG_A
(
ENB_APP
,
"VTP_ENABLE Command to proxy sent for cell_id: %d
\n
"
,
req
->
header
.
cell_id
);
req
->
header
.
cell_id
);
vtp_send_proxy
((
void
*
)
req
,
sizeof
(
VtpCmdReq_t
));
vtp_send_proxy
((
void
*
)
req
,
sizeof
(
VtpCmdReq_t
));
...
...
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