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);
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);