projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
759b3c5
)
Warn if ttl is out of bounds
author
Tim Laszlo
<Tim.Laszlo@magnetar.com>
Fri, 20 Jun 2014 13:37:19 +0000
(08:37 -0500)
committer
Marc Fournier
<marc.fournier@camptocamp.com>
Fri, 10 Apr 2015 11:41:18 +0000
(13:41 +0200)
src/network.c
patch
|
blob
|
history
diff --git
a/src/network.c
b/src/network.c
index
a2221e5
..
9c9e83c
100644
(file)
--- a/
src/network.c
+++ b/
src/network.c
@@
-2977,6
+2977,10
@@
static int network_config_set_ttl (const oconfig_item_t *ci) /* {{{ */
tmp = (int) ci->values[0].value.number;
if ((tmp > 0) && (tmp <= 255))
network_config_ttl = tmp;
+ else {
+ WARNING ("network plugin: The `TimeToLive' must be between 1 and 255.");
+ return (-1);
+ }
return (0);
} /* }}} int network_config_set_ttl */