diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2009-05-11 19:16:22 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2009-05-11 19:16:22 +0000 |
commit | 3ab9d79e0a81f15c20e1d1e6b61a55d673b5d1f5 (patch) | |
tree | bb60ec82b3c6f36eacd0ea874a5d1af6bd9b1b63 | |
parent | 15b25a28ed789a1881159acaa151dd1d08c22bf0 (diff) |
Make bgpctl show network print both AF_INET and AF_INET6 as mentioned in the
man page. Problem found by Rod Whitworth. OK sthen@
-rw-r--r-- | usr.sbin/bgpd/rde.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/rde.c b/usr.sbin/bgpd/rde.c index c8618fec25b..a3cc01b82e8 100644 --- a/usr.sbin/bgpd/rde.c +++ b/usr.sbin/bgpd/rde.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde.c,v 1.241 2009/04/23 19:23:27 claudio Exp $ */ +/* $OpenBSD: rde.c,v 1.242 2009/05/11 19:16:21 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -1962,8 +1962,11 @@ rde_dump_runner(void) default: fatalx("rde_dump_runner: unsupported imsg type"); } - if (ctx->ptc.done && ctx->req.af == AF_UNSPEC) + if (ctx->ptc.done && ctx->req.af == AF_UNSPEC && + ctx->af == AF_INET) { + ctx->ptc.done = 0; ctx->af = AF_INET6; + } } } |