Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ITS - Intelligent Transport Systems
ITS
Commits
6aaff673
Commit
6aaff673
authored
Jan 25, 2019
by
Yann Garcia
Browse files
Update udp_layer.cc
parent
5ef78c62
Changes
1
Hide whitespace changes
Inline
Side-by-side
ccsrc/Protocols/UDP/udp_layer.cc
View file @
6aaff673
...
...
@@ -33,7 +33,7 @@ udp_layer::udp_layer(const std::string & p_type, const std::string & param) : la
// Initialize the socket
_saddr
.
sin_family
=
AF_INET
;
_saddr
.
sin_addr
.
s_addr
=
INADDR_ANY
;
_saddr
.
sin_port
=
htons
(
std
::
atoi
(
_params
[
"
dst
_port"
].
c_str
()));
_saddr
.
sin_port
=
htons
(
std
::
atoi
(
_params
[
"
src
_port"
].
c_str
()));
// Create socket
_fd
=
::
socket
(
AF_INET
,
SOCK_DGRAM
,
IPPROTO_UDP
);
if
(
_fd
==
-
1
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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