Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
oai
freediameter
Commits
1965656a
Commit
1965656a
authored
Jan 27, 2012
by
Sebastien Decugis
Browse files
Always use REUSEADDR, not only in DEBUG
parent
d7c64742
Changes
2
Show whitespace changes
Inline
Side-by-side
libfdcore/sctp.c
View file @
1965656a
...
...
@@ -66,12 +66,10 @@ static int fd_setsockopt_prebind(int sk)
CHECK_PARAMS
(
sk
>
0
);
#ifdef DEBUG
{
int
reuse
=
1
;
CHECK_SYS
(
setsockopt
(
sk
,
SOL_SOCKET
,
SO_REUSEADDR
,
&
reuse
,
sizeof
(
reuse
))
);
}
#endif
/* DEBUG */
#ifdef ADJUST_RTX_PARAMS
/* Set the retransmit parameters */
...
...
libfdcore/tcp.c
View file @
1965656a
...
...
@@ -80,13 +80,10 @@ static int fd_tcp_setsockopt(int family, int sk)
}
#endif
/* IPV6_V6ONLY */
#ifdef DEBUG
{
opt
=
1
;
CHECK_SYS
(
setsockopt
(
sk
,
SOL_SOCKET
,
SO_REUSEADDR
,
&
opt
,
sizeof
(
opt
))
);
}
#endif
/* DEBUG */
/* There are also others sockopt that can be set, but nothing useful for us AFAICT */
...
...
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