summaryrefslogtreecommitdiff
path: root/sbin/isakmpd/isakmpd.c
diff options
context:
space:
mode:
authorHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2004-01-16 10:51:58 +0000
committerHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2004-01-16 10:51:58 +0000
commit83e18c91d15fd4ee37183a3f3128c770d11a847a (patch)
tree7d10d3734f9985ec526ab0675b1675ea21e05067 /sbin/isakmpd/isakmpd.c
parent7593331110afc0598e6e59c7758293c74241ee0f (diff)
Added -v option. Enables logging of successful exchange completion.
ok ho@
Diffstat (limited to 'sbin/isakmpd/isakmpd.c')
-rw-r--r--sbin/isakmpd/isakmpd.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/sbin/isakmpd/isakmpd.c b/sbin/isakmpd/isakmpd.c
index 97810a11daa..006d11154ab 100644
--- a/sbin/isakmpd/isakmpd.c
+++ b/sbin/isakmpd/isakmpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: isakmpd.c,v 1.53 2003/06/04 07:31:17 ho Exp $ */
+/* $OpenBSD: isakmpd.c,v 1.54 2004/01/16 10:51:57 hshoexer Exp $ */
/* $EOM: isakmpd.c,v 1.54 2000/10/05 09:28:22 niklas Exp $ */
/*
@@ -114,7 +114,7 @@ usage (void)
"usage: %s [-4] [-6] [-c config-file] [-d] [-D class=level]\n"
" [-f fifo] [-i pid-file] [-n] [-p listen-port]\n"
" [-P local-port] [-L] [-l packetlog-file] [-r seed]\n"
- " [-R report-file]\n",
+ " [-R report-file] [-v]\n",
sysdep_progname ());
exit (1);
}
@@ -129,7 +129,7 @@ parse_args (int argc, char *argv[])
int do_packetlog = 0;
#endif
- while ((ch = getopt (argc, argv, "46c:dD:f:i:np:P:Ll:r:R:")) != -1) {
+ while ((ch = getopt (argc, argv, "46c:dD:f:i:np:P:Ll:r:R:v")) != -1) {
switch (ch) {
case '4':
bind_family |= BIND_FAMILY_INET4;
@@ -206,6 +206,10 @@ parse_args (int argc, char *argv[])
report_file = optarg;
break;
+ case 'v':
+ verbose_logging = 1;
+ break;
+
case '?':
default:
usage ();