diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-02-25 14:25:23 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-02-25 14:25:23 +0000 |
commit | fc8c3e27036aab4d3021f9c55fa0b1c90b4c1405 (patch) | |
tree | fb24dc9585394ee08cdae97f8d4ee5535b50187e /usr.sbin | |
parent | 048ca19a4cc9b79ca1672bb4e8f738411534b01a (diff) |
kill "updates" keyword and use a ordinary string + strcmp at the one place
where it's needed, claudio ok
Diffstat (limited to 'usr.sbin')
-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; |