summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2009-05-17 13:23:09 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2009-05-17 13:23:09 +0000
commit775ede35957114d0640f1ec73bf28f2a6e524cda (patch)
treedf77891bc0f91f8e73ede3cd2700f431e21c931a /usr.sbin
parentcfcc9377ac033af037da6d989d45c929237e5415 (diff)
Adjust for IMSG_CTL_SHOW_NETWORK change in the RDE. IMSG_CTL_SHOW_NETWORK is
now using the same payload as IMSG_CTL_SHOW_RIB.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bgpctl/bgpctl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/bgpctl/bgpctl.c b/usr.sbin/bgpctl/bgpctl.c
index 1ba39ce0a47..acab60aaded 100644
--- a/usr.sbin/bgpctl/bgpctl.c
+++ b/usr.sbin/bgpctl/bgpctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bgpctl.c,v 1.139 2009/05/17 12:27:16 claudio Exp $ */
+/* $OpenBSD: bgpctl.c,v 1.140 2009/05/17 13:23:08 claudio Exp $ */
/*
* Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
@@ -289,8 +289,10 @@ main(int argc, char *argv[])
done = 1;
break;
case NETWORK_SHOW:
+ bzero(&ribreq, sizeof(ribreq));
+ ribreq.af = res->af;
imsg_compose(ibuf, IMSG_CTL_SHOW_NETWORK, 0, 0, -1,
- &res->af, sizeof(res->af));
+ &ribreq, sizeof(ribreq));
show_network_head();
break;
}