projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build system: Several fixes for libcurl, libmysql, and libupsclient.
[collectd.git]
/
src
/
network.c
diff --git
a/src/network.c
b/src/network.c
index
4b50ce2
..
84e7773
100644
(file)
--- a/
src/network.c
+++ b/
src/network.c
@@
-385,7
+385,8
@@
static int parse_part_values (void **ret_buffer, int *ret_buffer_len,
if (buffer_len < (15))
{
if (buffer_len < (15))
{
- DEBUG ("packet is too short: buffer_len = %i", buffer_len);
+ DEBUG ("network plugin: packet is too short: buffer_len = %i",
+ buffer_len);
return (-1);
}
return (-1);
}
@@
-1047,7
+1048,7
@@
static void network_send_buffer (const char *buffer, int buffer_len)
sockent_t *se;
int status;
sockent_t *se;
int status;
- DEBUG ("buffer_len = %i", buffer_len);
+ DEBUG ("
network plugin: network_send_buffer:
buffer_len = %i", buffer_len);
for (se = sending_sockets; se != NULL; se = se->next)
{
for (se = sending_sockets; se != NULL; se = se->next)
{
@@
-1231,7
+1232,11
@@
static int network_config (const char *key, const char *val)
&& (fields_num != 2))
return (1);
else if (fields_num == 2)
&& (fields_num != 2))
return (1);
else if (fields_num == 2)
+ {
+ if ((service = strchr (fields[1], '.')) != NULL)
+ *service = '\0';
service = fields[1];
service = fields[1];
+ }
node = fields[0];
if (strcasecmp ("Listen", key) == 0)
node = fields[0];
if (strcasecmp ("Listen", key) == 0)
@@
-1343,7
+1348,7
@@
static int network_init (void)
return (0);
} /* int network_init */
return (0);
} /* int network_init */
-void module_register (
modreg_e loa
d)
+void module_register (
voi
d)
{
plugin_register_config ("network", network_config,
config_keys, config_keys_num);
{
plugin_register_config ("network", network_config,
config_keys, config_keys_num);