diff options
author | Eric Faurot <eric@cvs.openbsd.org> | 2013-10-30 21:37:49 +0000 |
---|---|---|
committer | Eric Faurot <eric@cvs.openbsd.org> | 2013-10-30 21:37:49 +0000 |
commit | 496abbc7cb241944aedd953ac7f2d1f0eb334488 (patch) | |
tree | db9ba1dcb57d4d0b0c35b01bbbed923a7beafd3a /usr.sbin/smtpd/control.c | |
parent | 737874eed6d00bb00479fb5cb44543382033dcca (diff) |
add "smtpctl show relays" and "smtpctl show hosts" commands
Diffstat (limited to 'usr.sbin/smtpd/control.c')
-rw-r--r-- | usr.sbin/smtpd/control.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/control.c b/usr.sbin/smtpd/control.c index b63704875ed..72eea7b83b3 100644 --- a/usr.sbin/smtpd/control.c +++ b/usr.sbin/smtpd/control.c @@ -1,4 +1,4 @@ -/* $OpenBSD: control.c,v 1.91 2013/10/27 07:56:25 eric Exp $ */ +/* $OpenBSD: control.c,v 1.92 2013/10/30 21:37:48 eric Exp $ */ /* * Copyright (c) 2012 Gilles Chehade <gilles@poolp.org> @@ -121,6 +121,8 @@ control_imsg(struct mproc *p, struct imsg *imsg) } if (p->proc == PROC_MTA) { switch (imsg->hdr.type) { + case IMSG_CTL_MTA_SHOW_HOSTS: + case IMSG_CTL_MTA_SHOW_RELAYS: case IMSG_CTL_MTA_SHOW_ROUTES: case IMSG_CTL_MTA_SHOW_HOSTSTATS: c = tree_get(&ctl_conns, imsg->hdr.peerid); @@ -705,6 +707,8 @@ control_dispatch_ext(struct mproc *p, struct imsg *imsg) imsg->data, imsg->hdr.len - sizeof(imsg->hdr)); return; + case IMSG_CTL_MTA_SHOW_HOSTS: + case IMSG_CTL_MTA_SHOW_RELAYS: case IMSG_CTL_MTA_SHOW_ROUTES: case IMSG_CTL_MTA_SHOW_HOSTSTATS: if (c->euid) |