diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2009-03-18 19:45:10 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2009-03-18 19:45:10 +0000 |
commit | 04177707b084ac317daa35e28e219d4ef9ac8d56 (patch) | |
tree | 63c88be26a7191910bdd2804a012f612b7de7cb1 /usr.sbin/bgpd/rde.c | |
parent | 22585be56620390cf56bc0b4e0afb83c85699166 (diff) |
Correctly check for MRT_TABLE_DUMP_MP and don't send the config to the SE.
Make mrt table-mp dumps actually work. Found on the plane from NRT to ZRH.
OK henning@
Diffstat (limited to 'usr.sbin/bgpd/rde.c')
-rw-r--r-- | usr.sbin/bgpd/rde.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/rde.c b/usr.sbin/bgpd/rde.c index adceec9657d..93d63f19644 100644 --- a/usr.sbin/bgpd/rde.c +++ b/usr.sbin/bgpd/rde.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde.c,v 1.239 2009/03/13 16:05:40 claudio Exp $ */ +/* $OpenBSD: rde.c,v 1.240 2009/03/18 19:45:09 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -700,7 +700,8 @@ rde_dispatch_imsg_parent(struct imsgbuf *ibuf) if ((xmrt->wbuf.fd = imsg_get_fd(ibuf)) == -1) log_warnx("expected to receive fd for mrt dump " "but didn't receive any"); - else if (xmrt->type == MRT_TABLE_DUMP) { + else if (xmrt->type == MRT_TABLE_DUMP || + xmrt->type == MRT_TABLE_DUMP_MP) { /* do not dump if another is still running */ if (mrt == NULL || mrt->wbuf.queued == 0) { free(mrt); |