projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
adf0353
)
Merge branch 'ps/reuse'
author
Florian Forster
<octo@huhu.verplant.org>
Sat, 8 Dec 2007 12:02:41 +0000
(13:02 +0100)
committer
Florian Forster
<octo@huhu.verplant.org>
Sat, 8 Dec 2007 12:02:41 +0000
(13:02 +0100)
src/network.c
patch
|
blob
|
history
diff --git
a/src/network.c
b/src/network.c
index
ab04f4c
..
a659189
100644
(file)
--- a/
src/network.c
+++ b/
src/network.c
@@
-682,10
+682,11
@@
static int network_set_ttl (const sockent_t *se, const struct addrinfo *ai)
static int network_bind_socket (const sockent_t *se, const struct addrinfo *ai)
{
int loop = 0;
+ int yes = 1;
/* allow multiple sockets to use the same PORT number */
if (setsockopt(se->fd, SOL_SOCKET, SO_REUSEADDR,
- &
loop, sizeof(loop
)) == -1) {
+ &
yes, sizeof(yes
)) == -1) {
char errbuf[1024];
ERROR ("setsockopt: %s",
sstrerror (errno, errbuf, sizeof (errbuf)));