summaryrefslogtreecommitdiff
path: root/usr.sbin/ripd/ripd.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2009-11-02 20:28:50 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2009-11-02 20:28:50 +0000
commit73e30d30e9303ec154a841cb0fc722fe96b77344 (patch)
tree1f5cf5ff94951dcc0e3b1c65f7478873ff52c8d8 /usr.sbin/ripd/ripd.c
parent650f5a556835c74a288fb331fe461b0abb0ca910 (diff)
Another routing daemon that gets IMSG_CTL_LOG_VERBOSE to allow toggeling of
log_debug(). ok michele, henning, sthen
Diffstat (limited to 'usr.sbin/ripd/ripd.c')
-rw-r--r--usr.sbin/ripd/ripd.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/usr.sbin/ripd/ripd.c b/usr.sbin/ripd/ripd.c
index e081bb9a584..b26b6827213 100644
--- a/usr.sbin/ripd/ripd.c
+++ b/usr.sbin/ripd/ripd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ripd.c,v 1.18 2009/09/26 18:24:58 michele Exp $ */
+/* $OpenBSD: ripd.c,v 1.19 2009/11/02 20:28:49 claudio Exp $ */
/*
* Copyright (c) 2006 Michele Marchetto <mydecay@openbeer.it>
@@ -342,7 +342,7 @@ main_dispatch_ripe(int fd, short event, void *bula)
struct imsg imsg;
struct demote_msg dmsg;
ssize_t n;
- int shut = 0;
+ int shut = 0, verbose;
if (event & EV_READ) {
if ((n = imsg_read(ibuf)) == -1)
@@ -390,6 +390,11 @@ main_dispatch_ripe(int fd, short event, void *bula)
memcpy(&dmsg, imsg.data, sizeof(dmsg));
carp_demote_set(dmsg.demote_group, dmsg.level);
break;
+ case IMSG_CTL_LOG_VERBOSE:
+ /* already checked by ripe */
+ memcpy(&verbose, imsg.data, sizeof(verbose));
+ log_verbose(verbose);
+ break;
default:
log_debug("main_dispatch_ripe: error handling imsg %d",
imsg.hdr.type);