summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d4ddb48)
raw | patch | inline | side by side (parent: d4ddb48)
author | M. Sean Finney <seanius@users.sourceforge.net> | |
Mon, 20 Mar 2006 17:18:44 +0000 (17:18 +0000) | ||
committer | M. Sean Finney <seanius@users.sourceforge.net> | |
Mon, 20 Mar 2006 17:18:44 +0000 (17:18 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1331 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_ntp.c | patch | blob | history |
diff --git a/plugins/check_ntp.c b/plugins/check_ntp.c
index c2fa98d5094e2104a52e22f0d4f8ef0e76f83b61..56e5a05d9f034957ce01dbe6e3be69bf15b8e27a 100644 (file)
--- a/plugins/check_ntp.c
+++ b/plugins/check_ntp.c
{"help", no_argument, 0, 'h'},
{"verbose", no_argument, 0, 'v'},
{"use-ipv4", no_argument, 0, '4'},
-/* {"use-ipv6", no_argument, 0, '6'}, */
+ {"use-ipv6", no_argument, 0, '6'},
{"warning", required_argument, 0, 'w'},
{"critical", required_argument, 0, 'c'},
{"zero-offset", no_argument, 0, 'O'},
usage ("\n");
while (1) {
- c = getopt_long (argc, argv, "Vhv4w:c:Oj:k:t:H:", longopts, &option);
+ c = getopt_long (argc, argv, "Vhv46w:c:Oj:k:t:H:", longopts, &option);
if (c == -1 || c == EOF || c == 1)
break;
case 'O':
zero_offset_bad=1;
break;
+ case '4':
+ address_family = AF_INET;
+ break;
+ case '6':
+#ifdef USE_IPV6
+ address_family = AF_INET6;
+#else
+ usage4 (_("IPv6 support not available"));
+#endif
+ break;
case '?':
/* print short usage statement if args not parsable */
usage2 (_("Unknown argument"), optarg);