#include "../time.h"
#include "legacy-gateway-latency4.h"
-static const cap_value_t caps[] = {
- CAP_NET_ADMIN,
- CAP_NET_RAW,
- 0,
-};
-
static int fetch_default_gateway(td_ctx* ctx, td_source* source,
char* address, size_t length, unsigned int* type) {
struct nl_cache* routes = NULL;
NULL,
};
- return td_source_run_command(source, caps, argv, legacy_gateway_latency_on_success, source);
+ return td_source_run_command(source, NULL, argv, legacy_gateway_latency_on_success, source);
}
static int do_ping(td_ctx* ctx, td_source* source, const char* address) {
NULL,
};
- return td_source_run_command(source, caps, argv, legacy_gateway_latency_on_success, source);
+ return td_source_run_command(source, NULL, argv, legacy_gateway_latency_on_success, source);
}
static int legacy_gateway_latency4_heartbeat(td_ctx* ctx, td_source* source) {