diff options
author | Jakob Schlyter <jakob@cvs.openbsd.org> | 2003-12-26 20:52:15 +0000 |
---|---|---|
committer | Jakob Schlyter <jakob@cvs.openbsd.org> | 2003-12-26 20:52:15 +0000 |
commit | c4e8f05dc74bc167e19c10fa6246513737c64199 (patch) | |
tree | 5b7973090d5664fae7e69052f4835f2cac2c1a16 /usr.sbin/bgpd/parse.y | |
parent | 80546cee49628606ea0a02fa0b72ba955cd3b05f (diff) |
add option 'log updates' to log updates. ok henning@
Diffstat (limited to 'usr.sbin/bgpd/parse.y')
-rw-r--r-- | usr.sbin/bgpd/parse.y | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/parse.y b/usr.sbin/bgpd/parse.y index f2dedab8e22..d19c26d6437 100644 --- a/usr.sbin/bgpd/parse.y +++ b/usr.sbin/bgpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.19 2003/12/26 18:07:32 henning Exp $ */ +/* $OpenBSD: parse.y,v 1.20 2003/12/26 20:52:14 jakob Exp $ */ /* * Copyright (c) 2002, 2003 Henning Brauer <henning@openbsd.org> @@ -87,6 +87,7 @@ typedef struct { %token REMOTEAS DESCR LOCALADDR MULTIHOP PASSIVE %token ERROR %token MRTDUMP +%token LOG UPDATES %token <v.string> STRING %type <v.number> number %type <v.string> string @@ -158,6 +159,9 @@ conf_main : AS number { | NO FIBUPDATE { conf->flags |= BGPD_FLAG_NO_FIB_UPDATE; } + | LOG UPDATES { + conf->log |= BGPD_LOG_UPDATES; + } /* * XXX this is bad. * a) number should be optional @@ -313,6 +317,7 @@ lookup(char *s) { "holdtime", HOLDTIME}, { "listen", LISTEN}, { "local-addr", LOCALADDR}, + { "log", LOG}, { "min", YMIN}, { "mrtdump", MRTDUMP}, { "multihop", MULTIHOP}, @@ -322,6 +327,7 @@ lookup(char *s) { "passive", PASSIVE}, { "remote-as", REMOTEAS}, { "set", SET}, + { "updates", UPDATES}, }; const struct keywords *p; |