From 108baecaecbf09cc85c4925f82141beae40f7c1e Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Sun, 18 Aug 2013 00:30:58 +0200 Subject: check_fping: Use fping6(8) only if available Let check_fping use IPv6 only if - the operating system supports IPv6, - the user didn't specify --without-ipv6, and - the "configure" script found the fping6(8) binary. --- plugins/check_fping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/check_fping.c b/plugins/check_fping.c index 1c227cdb..fde1d798 100644 --- a/plugins/check_fping.c +++ b/plugins/check_fping.c @@ -103,7 +103,7 @@ main (int argc, char **argv) if (sourceif) xasprintf(&option_string, "%s-I %s ", option_string, sourceif); -#ifdef USE_IPV6 +#ifdef PATH_TO_FPING6 if (address_family == AF_INET6) fping_prog = strdup(PATH_TO_FPING6); else -- cgit v1.2.3-74-g34f1