summaryrefslogtreecommitdiffstats
path: root/nest
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-12-02 15:04:44 +0100
committerMartin Mares <mj@ucw.cz>1999-12-02 15:04:44 +0100
commit430da60fa29196cf8715e09e1d81c7ea0b672f05 (patch)
treed610f309e63a5243975e312f8be17c0b8422914c /nest
parentf2c6c80a2422b87a2947b7324ad14309198d64a4 (diff)
downloadbird-430da60fa29196cf8715e09e1d81c7ea0b672f05.tar
bird-430da60fa29196cf8715e09e1d81c7ea0b672f05.zip
Implemented `show route where <condition>' command.
Pavel, please check my addition to filter/config.Y.
Diffstat (limited to 'nest')
-rw-r--r--nest/config.Y6
1 files changed, 6 insertions, 0 deletions
diff --git a/nest/config.Y b/nest/config.Y
index 89177a7..01d34fa 100644
--- a/nest/config.Y
+++ b/nest/config.Y
@@ -237,8 +237,14 @@ r_args:
}
| r_args FILTER filter {
$$ = $1;
+ if ($$->filter != FILTER_ACCEPT) cf_error("Filter specified twice");
$$->filter = $3;
}
+ | r_args where_filter {
+ $$ = $1;
+ if ($$->filter != FILTER_ACCEPT) cf_error("Filter specified twice");
+ $$->filter = $2;
+ }
| r_args ALL {
$$ = $1;
$$->verbose = 1;