projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
treewide: stop checking for AI_PASSIVE
[collectd.git]
/
src
/
network.c
diff --git
a/src/network.c
b/src/network.c
index
4f13aa4
..
baeb915
100644
(file)
--- a/
src/network.c
+++ b/
src/network.c
@@
-2256,10
+2256,7
@@
static int sockent_server_listen (sockent_t *se) /* {{{ */
DEBUG ("network plugin: sockent_server_listen: node = %s; service = %s;",
node, service);
DEBUG ("network plugin: sockent_server_listen: node = %s; service = %s;",
node, service);
- ai_hints.ai_flags = AI_ADDRCONFIG;
-#ifdef AI_PASSIVE
- ai_hints.ai_flags |= AI_PASSIVE;
-#endif
+ ai_hints.ai_flags = AI_ADDRCONFIG | AI_PASSIVE;
ai_hints.ai_family = AF_UNSPEC;
ai_hints.ai_socktype = SOCK_DGRAM;
ai_hints.ai_protocol = IPPROTO_UDP;
ai_hints.ai_family = AF_UNSPEC;
ai_hints.ai_socktype = SOCK_DGRAM;
ai_hints.ai_protocol = IPPROTO_UDP;