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_ntp.c b/plugins/check_ntp.c
index c2fa98d..56e5a05 100644
--- a/plugins/check_ntp.c
+++ b/plugins/check_ntp.c
@@ -191,7 +191,7 @@ int process_arguments(int argc, char **argv){
191 {"help", no_argument, 0, 'h'}, 191 {"help", no_argument, 0, 'h'},
192 {"verbose", no_argument, 0, 'v'}, 192 {"verbose", no_argument, 0, 'v'},
193 {"use-ipv4", no_argument, 0, '4'}, 193 {"use-ipv4", no_argument, 0, '4'},
194/* {"use-ipv6", no_argument, 0, '6'}, */ 194 {"use-ipv6", no_argument, 0, '6'},
195 {"warning", required_argument, 0, 'w'}, 195 {"warning", required_argument, 0, 'w'},
196 {"critical", required_argument, 0, 'c'}, 196 {"critical", required_argument, 0, 'c'},
197 {"zero-offset", no_argument, 0, 'O'}, 197 {"zero-offset", no_argument, 0, 'O'},
@@ -207,7 +207,7 @@ int process_arguments(int argc, char **argv){
207 usage ("\n"); 207 usage ("\n");
208 208
209 while (1) { 209 while (1) {
210 c = getopt_long (argc, argv, "Vhv4w:c:Oj:k:t:H:", longopts, &option); 210 c = getopt_long (argc, argv, "Vhv46w:c:Oj:k:t:H:", longopts, &option);
211 if (c == -1 || c == EOF || c == 1) 211 if (c == -1 || c == EOF || c == 1)
212 break; 212 break;
213 213
@@ -248,6 +248,16 @@ int process_arguments(int argc, char **argv){
248 case 'O': 248 case 'O':
249 zero_offset_bad=1; 249 zero_offset_bad=1;
250 break; 250 break;
251 case '4':
252 address_family = AF_INET;
253 break;
254 case '6':
255#ifdef USE_IPV6
256 address_family = AF_INET6;
257#else
258 usage4 (_("IPv6 support not available"));
259#endif
260 break;
251 case '?': 261 case '?':
252 /* print short usage statement if args not parsable */ 262 /* print short usage statement if args not parsable */
253 usage2 (_("Unknown argument"), optarg); 263 usage2 (_("Unknown argument"), optarg);