From: Michael Tremer Date: Tue, 11 Nov 2025 17:45:58 +0000 (+0000) Subject: legacy-gateway-latency4: Send a brief burst of packets X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d6caafb220eb314f8452e6203ec4e5031b041e8;p=telemetry.git legacy-gateway-latency4: Send a brief burst of packets Signed-off-by: Michael Tremer --- diff --git a/src/daemon/sources/legacy-gateway-latency4.c b/src/daemon/sources/legacy-gateway-latency4.c index 8ee4c7a..c799425 100644 --- a/src/daemon/sources/legacy-gateway-latency4.c +++ b/src/daemon/sources/legacy-gateway-latency4.c @@ -169,7 +169,15 @@ static int legacy_gateway_latency_on_success(td_ctx* ctx, static int do_arping(td_ctx* ctx, td_source* source, const char* address) { const char* argv[] = { - "arping", "-c3", address, NULL, + "arping", + + // Send ten packets + "-c 10", + + // Wait up to 100ms between packets + "-W 0.1", + + address, NULL, }; return td_source_run_command(source, argv, legacy_gateway_latency_on_success, source); @@ -177,7 +185,21 @@ static int do_arping(td_ctx* ctx, td_source* source, const char* address) { static int do_ping(td_ctx* ctx, td_source* source, const char* address) { const char* argv[] = { - "ping", "-c3", address, NULL, + "ping", + + // Send ten packets + "-c 10", + + // Wait up to 100ms between packets + "-i 0.1", + + // Don't reverse-resolve the IP address + "-n", + + // The address + address, + + NULL, }; return td_source_run_command(source, argv, legacy_gateway_latency_on_success, source);