summaryrefslogtreecommitdiff
path: root/usr.sbin/relayd/relayd.c
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2010-01-11 06:40:15 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2010-01-11 06:40:15 +0000
commitef71cd3fc87017bde947092f6497a6bed6c41732 (patch)
treea6e9c52da3ff2d91df0a87f766a66e5fe7f6a267 /usr.sbin/relayd/relayd.c
parenta47132c529785bf8305ce4c99000eebf7ecf2209 (diff)
add "log brief" and "log verbose" to change logging verbosity
like several other things in the tree. ok reyk@ looks fine claudio@
Diffstat (limited to 'usr.sbin/relayd/relayd.c')
-rw-r--r--usr.sbin/relayd/relayd.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/relayd/relayd.c b/usr.sbin/relayd/relayd.c
index 7c6f9f3b84b..b0e89f61460 100644
--- a/usr.sbin/relayd/relayd.c
+++ b/usr.sbin/relayd/relayd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: relayd.c,v 1.93 2009/11/11 13:09:39 jsg Exp $ */
+/* $OpenBSD: relayd.c,v 1.94 2010/01/11 06:40:14 jsg Exp $ */
/*
* Copyright (c) 2007, 2008 Reyk Floeter <reyk@openbsd.org>
@@ -617,6 +617,7 @@ main_dispatch_pfe(int fd, short event, void *ptr)
struct ctl_demote demote;
struct ctl_netroute crt;
struct relayd *env;
+ int verbose;
iev = ptr;
ibuf = &iev->ibuf;
@@ -667,6 +668,10 @@ main_dispatch_pfe(int fd, short event, void *ptr)
*/
reconfigure();
break;
+ case IMSG_CTL_LOG_VERBOSE:
+ memcpy(&verbose, imsg.data, sizeof(verbose));
+ log_verbose(verbose);
+ break;
default:
log_debug("main_dispatch_pfe: unexpected imsg %d",
imsg.hdr.type);