summaryrefslogtreecommitdiffstats
path: root/plugins/t
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/t')
0 files changed, 0 insertions, 0 deletions
diff --git a/plugins/check_ping.c b/plugins/check_ping.c
index 0b2afce..06bf8e7 100644
--- a/plugins/check_ping.c
+++ b/plugins/check_ping.c
@@ -227,7 +227,11 @@ process_arguments (int argc, char **argv)
227 address_family = AF_INET; 227 address_family = AF_INET;
228 break; 228 break;
229 case '6': /* IPv6 only */ 229 case '6': /* IPv6 only */
230#ifdef USE_IPV6
230 address_family = AF_INET6; 231 address_family = AF_INET6;
232#else
233 usage ("IPv6 support not available\n");
234#endif
231 break; 235 break;
232 case 'H': /* hostname */ 236 case 'H': /* hostname */
233 ptr=optarg; 237 ptr=optarg;
diff --git a/plugins/check_ssh.c b/plugins/check_ssh.c
index 421fc01..fba3a86 100644
--- a/plugins/check_ssh.c
+++ b/plugins/check_ssh.c
@@ -110,7 +110,11 @@ process_arguments (int argc, char **argv)
110 address_family = AF_INET; 110 address_family = AF_INET;
111 break; 111 break;
112 case '6': 112 case '6':
113#ifdef USE_IPV6
113 address_family = AF_INET6; 114 address_family = AF_INET6;
115#else
116 usage ("IPv6 support not available\n");
117#endif
114 break; 118 break;
115 case 'H': /* host */ 119 case 'H': /* host */
116 if (is_host (optarg) == FALSE) 120 if (is_host (optarg) == FALSE)
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c
index b8af1a1..ce4fd31 100644
--- a/plugins/check_tcp.c
+++ b/plugins/check_tcp.c
@@ -449,7 +449,11 @@ process_arguments (int argc, char **argv)
449 address_family = AF_INET; 449 address_family = AF_INET;
450 break; 450 break;
451 case '6': 451 case '6':
452#ifdef USE_IPV6
452 address_family = AF_INET6; 453 address_family = AF_INET6;
454#else
455 usage ("IPv6 support not available\n");
456#endif
453 break; 457 break;
454 case 'H': /* hostname */ 458 case 'H': /* hostname */
455 if (is_host (optarg) == FALSE) 459 if (is_host (optarg) == FALSE)
diff --git a/plugins/netutils.c b/plugins/netutils.c
index 60410c6..ea004bb 100644
--- a/plugins/netutils.c
+++ b/plugins/netutils.c
@@ -326,7 +326,11 @@ is_host (char *address)
326int 326int
327is_addr (char *address) 327is_addr (char *address)
328{ 328{
329#ifdef USE_IPV6
329 if (is_inet_addr (address) && address_family != AF_INET6) 330 if (is_inet_addr (address) && address_family != AF_INET6)
331#else
332 if (is_inet_addr (address))
333#endif
330 return (TRUE); 334 return (TRUE);
331 335
332#ifdef USE_IPV6 336#ifdef USE_IPV6