summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hessler <phessler@cvs.openbsd.org>2015-04-25 13:23:02 +0000
committerPeter Hessler <phessler@cvs.openbsd.org>2015-04-25 13:23:02 +0000
commit645dedbc3e9ada87db981415ff44d81372463280 (patch)
tree751c58d5104a5f7daf5c77081ae0ca04d4a51f44
parent0ac341851f23e8741cf2fee7b4dbc400baa29cb9 (diff)
handle an IRR record of "export ... action X" the same way we handle
"import ... action X". OK benno@ henning@
-rw-r--r--usr.sbin/bgpctl/irr_parser.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/bgpctl/irr_parser.c b/usr.sbin/bgpctl/irr_parser.c
index b707e97e39c..0c21209d518 100644
--- a/usr.sbin/bgpctl/irr_parser.c
+++ b/usr.sbin/bgpctl/irr_parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: irr_parser.c,v 1.12 2015/01/16 06:40:15 deraadt Exp $ */
+/* $OpenBSD: irr_parser.c,v 1.13 2015/04/25 13:23:01 phessler Exp $ */
/*
* Copyright (c) 2007 Henning Brauer <henning@openbsd.org>
@@ -244,6 +244,8 @@ parse_policy(char *key, char *val)
nextst = PO_PEER_KEY;
else if (!strcmp(tok, "at"))
nextst = PO_RTR_KEY;
+ else if (!strcmp(tok, "action"))
+ nextst = PO_ACTION_KEY;
else if (!strcmp(tok, "announce"))
nextst = PO_FILTER_KEY;
}