summaryrefslogtreecommitdiff
path: root/sbin/isakmpd/isakmpd.c
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1999-10-01 14:09:21 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1999-10-01 14:09:21 +0000
commitcbca5d09b5fbd3b71acd016727174445f3a65a85 (patch)
treebebd82c0c73d5c58fbcb326c2ed6bf97ef53783f /sbin/isakmpd/isakmpd.c
parent6f89fafd3e91825fb5429051fe17a8f9fe9d73d7 (diff)
isakmpd.8: Merge with EOM 1.17
isakmpd.c: Merge with EOM 1.38 author: angelos Allow "-DA=xx" to mean "set all debug classes to level xx"
Diffstat (limited to 'sbin/isakmpd/isakmpd.c')
-rw-r--r--sbin/isakmpd/isakmpd.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/sbin/isakmpd/isakmpd.c b/sbin/isakmpd/isakmpd.c
index c3d0c5c12e5..fda2a8ecce0 100644
--- a/sbin/isakmpd/isakmpd.c
+++ b/sbin/isakmpd/isakmpd.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: isakmpd.c,v 1.14 1999/08/26 22:31:45 niklas Exp $ */
-/* $EOM: isakmpd.c,v 1.37 1999/08/26 11:21:49 niklas Exp $ */
+/* $OpenBSD: isakmpd.c,v 1.15 1999/10/01 14:09:20 niklas Exp $ */
+/* $EOM: isakmpd.c,v 1.38 1999/09/20 19:57:50 angelos Exp $ */
/*
* Copyright (c) 1998, 1999 Niklas Hallqvist. All rights reserved.
@@ -112,7 +112,15 @@ parse_args (int argc, char *argv[])
break;
case 'D':
if (sscanf (optarg, "%d=%d", &cls, &level) != 2)
- log_print ("parse_args: -D argument unparseable: %s", optarg);
+ {
+ if (sscanf (optarg, "A=%d", &level) == 1)
+ {
+ for (cls = 0; cls < LOG_ENDCLASS; cls++)
+ log_debug_cmd (cls, level);
+ }
+ else
+ log_print ("parse_args: -D argument unparseable: %s", optarg);
+ }
else
log_debug_cmd (cls, level);
break;