diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2005-02-09 12:35:21 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2005-02-09 12:35:21 +0000 |
commit | 93576e6020385ad4abee0f2a50103dd5a929bebb (patch) | |
tree | ea67a32d6b39120c209bd81ec30b3dde629a256f /usr.sbin/bgpctl/bgpctl.c | |
parent | 728dc78506ff978ffea74876fdecdcaa13996d8b (diff) |
need to send IMSG_NETWORK_DONE after sending networks announcement.
Similar to the fix commited by henning@ a few hours ago. OK henning@
Diffstat (limited to 'usr.sbin/bgpctl/bgpctl.c')
-rw-r--r-- | usr.sbin/bgpctl/bgpctl.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.sbin/bgpctl/bgpctl.c b/usr.sbin/bgpctl/bgpctl.c index aba5adb1ae3..8e1fc098066 100644 --- a/usr.sbin/bgpctl/bgpctl.c +++ b/usr.sbin/bgpctl/bgpctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpctl.c,v 1.73 2005/02/02 18:52:32 henning Exp $ */ +/* $OpenBSD: bgpctl.c,v 1.74 2005/02/09 12:35:20 claudio Exp $ */ /* * Copyright (c) 2003 Henning Brauer <henning@openbsd.org> @@ -221,10 +221,12 @@ main(int argc, char *argv[]) memcpy(&net.prefix, &res->addr, sizeof(res->addr)); net.prefixlen = res->prefixlen; /* attribute sets are not supported */ - if (res->action == NETWORK_ADD) + if (res->action == NETWORK_ADD) { imsg_compose(ibuf, IMSG_NETWORK_ADD, 0, 0, -1, &net, sizeof(net)); - else + imsg_compose(ibuf, IMSG_NETWORK_DONE, 0, 0, -1, + NULL, 0); + } else imsg_compose(ibuf, IMSG_NETWORK_REMOVE, 0, 0, -1, &net, sizeof(net)); printf("request sent.\n"); |