diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-08-20 15:49:36 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-08-20 15:49:36 +0000 |
commit | 9a6286707e511171368602be5704a112ab4c0d41 (patch) | |
tree | ba5565dd1d8b78259dc0377b029b04d18e710c4a /usr.sbin/bgpctl/bgpctl.c | |
parent | eff6c30ac0549a1f39584c4a8130f2ff471a5285 (diff) |
add support for "bgpctl neighbor 1.2.3.4 clear", takes session down & up again
claudio ok
Diffstat (limited to 'usr.sbin/bgpctl/bgpctl.c')
-rw-r--r-- | usr.sbin/bgpctl/bgpctl.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.sbin/bgpctl/bgpctl.c b/usr.sbin/bgpctl/bgpctl.c index ef7a938b475..f9ce4f5c7ad 100644 --- a/usr.sbin/bgpctl/bgpctl.c +++ b/usr.sbin/bgpctl/bgpctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpctl.c,v 1.60 2004/08/06 11:53:12 claudio Exp $ */ +/* $OpenBSD: bgpctl.c,v 1.61 2004/08/20 15:49:35 henning Exp $ */ /* * Copyright (c) 2003 Henning Brauer <henning@openbsd.org> @@ -186,6 +186,12 @@ main(int argc, char *argv[]) printf("request sent.\n"); done = 1; break; + case NEIGHBOR_CLEAR: + imsg_compose(&ibuf, IMSG_CTL_NEIGHBOR_CLEAR, 0, + &res->addr, sizeof(res->addr)); + printf("request sent.\n"); + done = 1; + break; case NETWORK_ADD: case NETWORK_REMOVE: bzero(&net, sizeof(net)); @@ -261,6 +267,7 @@ main(int argc, char *argv[]) case NEIGHBOR: case NEIGHBOR_UP: case NEIGHBOR_DOWN: + case NEIGHBOR_CLEAR: case NETWORK_ADD: case NETWORK_REMOVE: case NETWORK_FLUSH: |