diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2004-03-01 16:02:02 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2004-03-01 16:02:02 +0000 |
commit | 81787a9c18092f8b6ff8b7ed88372701d75935d7 (patch) | |
tree | 6a30c639b6bb135dc0bf204cb73bc3b54d48b7a3 /usr.sbin/bgpd/parse.y | |
parent | 7e29d931c4fdd5a145dd21639ee2fe22809ea26a (diff) |
Make it possible to diable the decision process. This is a feature only useful
for route-collectors. OK henning@
Diffstat (limited to 'usr.sbin/bgpd/parse.y')
-rw-r--r-- | usr.sbin/bgpd/parse.y | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/parse.y b/usr.sbin/bgpd/parse.y index b7119fa6d2d..5aa0f73f2fb 100644 --- a/usr.sbin/bgpd/parse.y +++ b/usr.sbin/bgpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.63 2004/02/26 14:00:33 claudio Exp $ */ +/* $OpenBSD: parse.y,v 1.64 2004/03/01 16:02:01 claudio Exp $ */ /* * Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -102,7 +102,7 @@ typedef struct { %token REMOTEAS DESCR LOCALADDR MULTIHOP PASSIVE MAXPREFIX ANNOUNCE %token ENFORCE NEIGHBORAS %token DUMP TABLE IN OUT -%token LOG +%token LOG ROUTECOLL %token TCP MD5SIG PASSWORD KEY %token ALLOW DENY MATCH %token QUICK @@ -208,6 +208,12 @@ conf_main : AS number { else conf->flags &= ~BGPD_FLAG_NO_FIB_UPDATE; } + | ROUTECOLL yesno { + if ($2 == 1) + conf->flags |= BGPD_FLAG_NO_EVALUATE; + else + conf->flags &= ~BGPD_FLAG_NO_EVALUATE; + } | LOG string { if (!strcmp($2, "updates")) conf->log |= BGPD_LOG_UPDATES; @@ -718,6 +724,7 @@ lookup(char *s) { "prepend-self", PREPEND}, { "quick", QUICK}, { "remote-as", REMOTEAS}, + { "route-collector", ROUTECOLL}, { "router-id", ROUTERID}, { "set", SET}, { "source-AS", SOURCEAS}, |