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
63159d3f
Commit
63159d3f
authored
Dec 09, 2024
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sockaddr_in no memset
parent
10c5178b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
nfapi/open-nFAPI/pnf/src/pnf_p7.c
nfapi/open-nFAPI/pnf/src/pnf_p7.c
+1
-4
No files found.
nfapi/open-nFAPI/pnf/src/pnf_p7.c
View file @
63159d3f
...
...
@@ -460,10 +460,7 @@ static uint32_t get_sf_time(uint32_t now_hr, uint32_t sf_start_hr)
int
pnf_p7_send_message
(
pnf_p7_t
*
pnf_p7
,
uint8_t
*
msg
,
uint32_t
len
)
{
// todo : consider how to do this only once
struct
sockaddr_in
remote_addr
;
memset
((
char
*
)
&
remote_addr
,
0
,
sizeof
(
struct
sockaddr_in
));
remote_addr
.
sin_family
=
AF_INET
;
remote_addr
.
sin_port
=
htons
(
pnf_p7
->
_public
.
remote_p7_port
);
struct
sockaddr_in
remote_addr
=
{.
sin_family
=
AF_INET
,
.
sin_port
=
htons
(
pnf_p7
->
_public
.
remote_p7_port
)};
if
(
inet_aton
(
pnf_p7
->
_public
.
remote_p7_addr
,
&
remote_addr
.
sin_addr
)
==
-
1
)
...
...
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