projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f5da97
)
network plugin: Improve a debugging message.
author
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Thu, 19 Mar 2009 08:40:29 +0000
(09:40 +0100)
committer
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Thu, 19 Mar 2009 08:40:29 +0000
(09:40 +0100)
src/network.c
patch
|
blob
|
history
diff --git
a/src/network.c
b/src/network.c
index
9e391bb
..
c996b07
100644
(file)
--- a/
src/network.c
+++ b/
src/network.c
@@
-869,11
+869,12
@@
static void free_sockent (sockent_t *se)
*/
static int network_set_ttl (const sockent_t *se, const struct addrinfo *ai)
{
+ DEBUG ("network plugin: network_set_ttl: network_config_ttl = %i;",
+ network_config_ttl);
+
if ((network_config_ttl < 1) || (network_config_ttl > 255))
return (-1);
- DEBUG ("ttl = %i", network_config_ttl);
-
if (ai->ai_family == AF_INET)
{
struct sockaddr_in *addr = (struct sockaddr_in *) ai->ai_addr;