diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2005-07-04 09:31:36 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2005-07-04 09:31:36 +0000 |
commit | da7d23f60156d4ceaef9ba166e80a01a7fde2ab3 (patch) | |
tree | d7fb02778ca8becf137469f6ff597a001c2e35e9 /usr.sbin/bgpd/parse.y | |
parent | 3274830b800891db8c55508ba1eb500508758770 (diff) |
Switch some parser rules from "string" to "STRING". "string" is to greedy
and hides possible typos. e.g. set { rtlabel foo localperf 100 } was a valid
syntax but the result was a route label with name "foo localperf 100".
OK henning@
Diffstat (limited to 'usr.sbin/bgpd/parse.y')
-rw-r--r-- | usr.sbin/bgpd/parse.y | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/bgpd/parse.y b/usr.sbin/bgpd/parse.y index 4d89a9b2f84..1aebab4c54b 100644 --- a/usr.sbin/bgpd/parse.y +++ b/usr.sbin/bgpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.166 2005/07/01 13:38:14 claudio Exp $ */ +/* $OpenBSD: parse.y,v 1.167 2005/07/04 09:31:35 claudio Exp $ */ /* * Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -316,7 +316,7 @@ conf_main : AS asnumber { else conf->flags &= ~BGPD_FLAG_DECISION_TRANS_AS; } - | LOG string { + | LOG STRING { if (!strcmp($2, "updates")) conf->log |= BGPD_LOG_UPDATES; else { @@ -1307,7 +1307,7 @@ filter_set_opt : LOCALPREF number { } $$->action.prepend = $2; } - | PFTABLE string { + | PFTABLE STRING { if (($$ = calloc(1, sizeof(struct filter_set))) == NULL) fatal(NULL); $$->type = ACTION_PFTABLE; @@ -1331,7 +1331,7 @@ filter_set_opt : LOCALPREF number { } free($2); } - | RTLABEL string { + | RTLABEL STRING { if (($$ = calloc(1, sizeof(struct filter_set))) == NULL) fatal(NULL); $$->type = ACTION_RTLABEL; |