summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d76d251)
raw | patch | inline | side by side (parent: d76d251)
author | Tim Laszlo <Tim.Laszlo@magnetar.com> | |
Fri, 20 Jun 2014 13:37:19 +0000 (08:37 -0500) | ||
committer | Tim Laszlo <Tim.Laszlo@magnetar.com> | |
Fri, 20 Jun 2014 13:37:19 +0000 (08:37 -0500) |
src/network.c | patch | blob | history |
diff --git a/src/network.c b/src/network.c
index 98cb8eba100a8ccf19bb89d9dc39ce81d3f651e9..8cf170313e2b402625602622c0b01603aca3a03b 100644 (file)
--- a/src/network.c
+++ b/src/network.c
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 */