From: Florian Forster Date: Thu, 30 Sep 2010 06:35:33 +0000 (+0200) Subject: network plugin: Increase default buffer size to 1452. X-Git-Tag: collectd-5.0.0-beta0~33 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2047b2b31f53bc2e02f40eb86d10f1e7c403a8ff;p=collectd.git network plugin: Increase default buffer size to 1452. --- diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod index 4b7a2e34..8481a542 100644 --- a/src/collectd.conf.pod +++ b/src/collectd.conf.pod @@ -2626,7 +2626,7 @@ operating systems. =item B I<1024-65535> Set the maximum size for datagrams received over the network. Packets larger -than this will be truncated. +than this will be truncated. Defaults to 1452Ebytes. =item B I diff --git a/src/network.c b/src/network.c index 73e6d92d..9ca2eeea 100644 --- a/src/network.c +++ b/src/network.c @@ -258,7 +258,7 @@ typedef struct receive_list_entry_s receive_list_entry_t; * Private variables */ static int network_config_ttl = 0; -static size_t network_config_packet_size = 1024; +static size_t network_config_packet_size = 1452; static int network_config_forward = 0; static int network_config_stats = 0;