diff options
-rw-r--r-- | usr.sbin/bgpd/parse.y | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/usr.sbin/bgpd/parse.y b/usr.sbin/bgpd/parse.y index cb77f09434d..6afc6fbd027 100644 --- a/usr.sbin/bgpd/parse.y +++ b/usr.sbin/bgpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.58 2004/02/24 15:43:03 claudio Exp $ */ +/* $OpenBSD: parse.y,v 1.59 2004/02/25 14:25:22 henning Exp $ */ /* * Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -101,7 +101,7 @@ typedef struct { %token GROUP NEIGHBOR NETWORK %token REMOTEAS DESCR LOCALADDR MULTIHOP PASSIVE MAXPREFIX ANNOUNCE %token DUMP MSG IN TABLE -%token LOG UPDATES +%token LOG %token TCP MD5SIG PASSWORD KEY %token ALLOW DENY MATCH %token QUICK @@ -207,8 +207,11 @@ conf_main : AS number { else conf->flags &= ~BGPD_FLAG_NO_FIB_UPDATE; } - | LOG UPDATES { - conf->log |= BGPD_LOG_UPDATES; + | LOG string { + if (!strcmp($2, "updates")) + conf->log |= BGPD_LOG_UPDATES; + else + YYERROR; } | DUMP MSG STRING IN STRING optnumber { int action; @@ -709,7 +712,6 @@ lookup(char *s) { "tcp", TCP}, { "to", TO}, { "transit-AS", TRANSITAS}, - { "updates", UPDATES}, }; const struct keywords *p; |