summaryrefslogtreecommitdiff
path: root/nest
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-12-02 14:04:44 +0000
committerMartin Mares <mj@ucw.cz>1999-12-02 14:04:44 +0000
commit430da60fa29196cf8715e09e1d81c7ea0b672f05 (patch)
treed610f309e63a5243975e312f8be17c0b8422914c /nest
parentf2c6c80a2422b87a2947b7324ad14309198d64a4 (diff)
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 89177a7a..01d34fa9 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;