summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4ecefb9)
raw | patch | inline | side by side (parent: 4ecefb9)
author | Florian Forster <octo@collectd.org> | |
Mon, 30 Jan 2012 13:47:04 +0000 (14:47 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Mon, 30 Jan 2012 13:47:04 +0000 (14:47 +0100) |
Change-Id: I48e61fc2613ca50c477794167f180e3b4f4fc673
src/collectd.conf.pod | patch | blob | history | |
src/network.c | patch | blob | history |
diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod
index 3d811105d4a44aa7758a9ac4e5596c6a2f0873b6..1b0c2fd991e81962853e30d6590a52342fd21624 100644 (file)
--- a/src/collectd.conf.pod
+++ b/src/collectd.conf.pod
=item B<MaxPacketSize> I<1024-65535>
Set the maximum size for datagrams received over the network. Packets larger
-than this will be truncated. Defaults to 1452E<nbsp>bytes.
+than this will be truncated. Defaults to 1452E<nbsp>bytes, which is the maximum
+payload size that can be transmitted in one Ethernet frame using IPv6E<nbsp>/
+UDP.
+
+On the server side, this limit should be set to the largest value used on
+I<any> client. Likewise, the value on the client must not be larger than the
+value on the server, or data will be lost.
+
+B<Compatibility:> Versions prior to I<versionE<nbsp>4.8> used a fixed sized
+buffer of 1024E<nbsp>bytes. Versions I<4.8>, I<4.9> and I<4.10> used a default
+value of 1024E<nbsp>bytes to avoid problems when sending data to an older
+server.
=item B<Forward> I<true|false>
diff --git a/src/network.c b/src/network.c
index 840577f5b49509f1d197c734666b91341d7b7eb8..a19b586ee694e5ce229a803616e9b2ffc0a47a94 100644 (file)
--- a/src/network.c
+++ b/src/network.c
* Private variables
*/
static int network_config_ttl = 0;
+/* Ethernet - (IPv6 + UDP) = 1500 - (40 + 8) = 1452 */
static size_t network_config_packet_size = 1452;
static int network_config_forward = 0;
static int network_config_stats = 0;