diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2018-09-09 14:27:25 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2018-09-09 14:27:25 +0000 |
commit | 8000d51d8c07bc7818ace69e9f0976e795c8f43b (patch) | |
tree | 1cd6c2f749e4a318e8d4209bf68bd1b41b7438b1 /usr.sbin/bgpd | |
parent | 8b839c7ea28aaeabb78d4d15ffeb0557124ed3ec (diff) |
Can not allow empty as-set and prefix-set blocks right now. This produces
shit/reduce confilcts which need to be resolved first.
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r-- | usr.sbin/bgpd/parse.y | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.sbin/bgpd/parse.y b/usr.sbin/bgpd/parse.y index e976555dde3..5b22217a1ea 100644 --- a/usr.sbin/bgpd/parse.y +++ b/usr.sbin/bgpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.346 2018/09/09 13:44:54 claudio Exp $ */ +/* $OpenBSD: parse.y,v 1.347 2018/09/09 14:27:24 claudio Exp $ */ /* * Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -409,8 +409,7 @@ as_set : ASSET STRING '{' optnl { done_as_set(); } -as_set_l : /* empty */ - | as4number_any { add_as_set($1); } +as_set_l : as4number_any { add_as_set($1); } | as_set_l comma as4number_any { add_as_set($3); } prefixset : PREFIXSET STRING '{' optnl { @@ -434,8 +433,7 @@ prefixset : PREFIXSET STRING '{' optnl { curpset = NULL; } -prefixset_l : /* empty */ - | prefixset_item { +prefixset_l : prefixset_item { SIMPLEQ_INSERT_TAIL(&curpset->psitems, $1, entry); } | prefixset_l comma prefixset_item { |