summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/bgpd/parse.y')
-rw-r--r--usr.sbin/bgpd/parse.y9
1 files changed, 7 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/parse.y b/usr.sbin/bgpd/parse.y
index 146cbfc9ab9..9dee3620158 100644
--- a/usr.sbin/bgpd/parse.y
+++ b/usr.sbin/bgpd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.10 2003/12/23 13:13:24 henning Exp $ */
+/* $OpenBSD: parse.y,v 1.11 2003/12/24 13:49:21 henning Exp $ */
/*
* Copyright (c) 2002, 2003 Henning Brauer <henning@openbsd.org>
@@ -82,7 +82,7 @@ typedef struct {
%}
%token SET
-%token AS BGPID HOLDTIME YMIN LISTEN ON
+%token AS BGPID HOLDTIME YMIN LISTEN ON NO FIBUPDATE
%token GROUP NEIGHBOR
%token REMOTEAS DESCR LOCALADDR MULTIHOP
%token ERROR
@@ -155,6 +155,9 @@ conf_main : AS number {
| LISTEN ON address {
conf->listen_addr.sin_addr.s_addr = $3.s_addr;
}
+ | NO FIBUPDATE {
+ conf->flags |= BGPD_FLAG_NO_FIB_UPDATE;
+ }
/*
* XXX this is bad.
* a) number should be optional
@@ -301,6 +304,7 @@ lookup(char *s)
{ "AS", AS},
{ "bgpid", BGPID},
{ "descr", DESCR},
+ { "fib-update", FIBUPDATE},
{ "group", GROUP},
{ "holdtime", HOLDTIME},
{ "listen", LISTEN},
@@ -309,6 +313,7 @@ lookup(char *s)
{ "mrtdump", MRTDUMP},
{ "multihop", MULTIHOP},
{ "neighbor", NEIGHBOR},
+ { "no", NO},
{ "on", ON},
{ "remote-as", REMOTEAS},
{ "set", SET},