diff options
-rw-r--r-- | usr.sbin/bgpctl/bgpctl.c | 9 | ||||
-rw-r--r-- | usr.sbin/bgpctl/parser.c | 3 | ||||
-rw-r--r-- | usr.sbin/bgpctl/parser.h | 3 |
3 files changed, 12 insertions, 3 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: diff --git a/usr.sbin/bgpctl/parser.c b/usr.sbin/bgpctl/parser.c index 43ff39bb6af..e4aa6e395c0 100644 --- a/usr.sbin/bgpctl/parser.c +++ b/usr.sbin/bgpctl/parser.c @@ -1,4 +1,4 @@ -/* $OpenBSD: parser.c,v 1.7 2004/06/17 19:40:03 henning Exp $ */ +/* $OpenBSD: parser.c,v 1.8 2004/08/20 15:49:35 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -127,6 +127,7 @@ static const struct token t_neighbor[] = { static const struct token t_neighbor_modifiers[] = { { KEYWORD, "up", NEIGHBOR_UP, NULL}, { KEYWORD, "down", NEIGHBOR_DOWN, NULL}, + { KEYWORD, "clear", NEIGHBOR_CLEAR, NULL}, { ENDTOKEN, "", NONE, NULL} }; diff --git a/usr.sbin/bgpctl/parser.h b/usr.sbin/bgpctl/parser.h index 8352f4a5dce..586622bc9ae 100644 --- a/usr.sbin/bgpctl/parser.h +++ b/usr.sbin/bgpctl/parser.h @@ -1,4 +1,4 @@ -/* $OpenBSD: parser.h,v 1.4 2004/05/21 11:52:32 claudio Exp $ */ +/* $OpenBSD: parser.h,v 1.5 2004/08/20 15:49:35 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -37,6 +37,7 @@ enum actions { NEIGHBOR, NEIGHBOR_UP, NEIGHBOR_DOWN, + NEIGHBOR_CLEAR, NETWORK_ADD, NETWORK_REMOVE, NETWORK_FLUSH, |