summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f4523a2)
raw | patch | inline | side by side (parent: f4523a2)
author | Florian Forster <octo@collectd.org> | |
Wed, 23 Nov 2011 13:40:58 +0000 (14:40 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Sat, 21 Jan 2012 10:37:28 +0000 (11:37 +0100) |
Change-Id: I2cc65a36366c6c714cd79c2905879bce313efe31
src/network.c | patch | blob | history |
diff --git a/src/network.c b/src/network.c
index 95f54641ae6e96af855494190272472b67458cd2..8de557d27a17a1cb979b4c807d1857b9b1517f40 100644 (file)
--- a/src/network.c
+++ b/src/network.c
}
}
- plugin_dispatch_values (vl);
+ plugin_dispatch_values_secure (vl);
stats_values_dispatched++;
meta_data_destroy (vl->meta);
vl.values[0].counter = (counter_t) copy_octets_rx;
vl.values[1].counter = (counter_t) copy_octets_tx;
sstrncpy (vl.type, "if_octets", sizeof (vl.type));
- plugin_dispatch_values (&vl);
+ plugin_dispatch_values_secure (&vl);
/* Packets received / send */
vl.values[0].counter = (counter_t) copy_packets_rx;
vl.values[1].counter = (counter_t) copy_packets_tx;
sstrncpy (vl.type, "if_packets", sizeof (vl.type));
- plugin_dispatch_values (&vl);
+ plugin_dispatch_values_secure (&vl);
/* Values (not) dispatched and (not) send */
sstrncpy (vl.type, "total_values", sizeof (vl.type));
vl.values[0].derive = (derive_t) copy_values_dispatched;
sstrncpy (vl.type_instance, "dispatch-accepted",
sizeof (vl.type_instance));
- plugin_dispatch_values (&vl);
+ plugin_dispatch_values_secure (&vl);
vl.values[0].derive = (derive_t) copy_values_not_dispatched;
sstrncpy (vl.type_instance, "dispatch-rejected",
sizeof (vl.type_instance));
- plugin_dispatch_values (&vl);
+ plugin_dispatch_values_secure (&vl);
vl.values[0].derive = (derive_t) copy_values_sent;
sstrncpy (vl.type_instance, "send-accepted",
sizeof (vl.type_instance));
- plugin_dispatch_values (&vl);
+ plugin_dispatch_values_secure (&vl);
vl.values[0].derive = (derive_t) copy_values_not_sent;
sstrncpy (vl.type_instance, "send-rejected",
sizeof (vl.type_instance));
- plugin_dispatch_values (&vl);
+ plugin_dispatch_values_secure (&vl);
/* Receive queue length */
vl.values[0].gauge = (gauge_t) copy_receive_list_length;
sstrncpy (vl.type, "queue_length", sizeof (vl.type));
vl.type_instance[0] = 0;
- plugin_dispatch_values (&vl);
+ plugin_dispatch_values_secure (&vl);
return (0);
} /* }}} int network_stats_read */