summaryrefslogtreecommitdiffstats
path: root/proto
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-05-13 13:17:49 +0200
committerMartin Mares <mj@ucw.cz>2000-05-13 13:17:49 +0200
commit758458be054ebdf4cd77620faf214f2b491a49dc (patch)
treee8cdebbcf3095ddc1db63ac3c5b611f9708c9879 /proto
parent02bd064ab76f163313261dad5c273cb376be2a75 (diff)
downloadbird-758458be054ebdf4cd77620faf214f2b491a49dc.tar
bird-758458be054ebdf4cd77620faf214f2b491a49dc.zip
Unified parsing of prefixes.
Had to rename `prefix' in filters to `fprefix'.
Diffstat (limited to 'proto')
-rw-r--r--proto/static/config.Y7
1 files changed, 3 insertions, 4 deletions
diff --git a/proto/static/config.Y b/proto/static/config.Y
index 12d7934..0197da3 100644
--- a/proto/static/config.Y
+++ b/proto/static/config.Y
@@ -34,12 +34,11 @@ static_proto:
| static_proto stat_route ';'
;
-stat_route0: ROUTE IPA pxlen {
+stat_route0: ROUTE prefix {
this_srt = cfg_allocz(sizeof(struct static_route));
add_tail(&((struct static_config *) this_proto)->other_routes, &this_srt->n);
- if (!ip_is_prefix($2, $3)) cf_error("Invalid network prefix: %I/%d", $2, $3);
- this_srt->net = $2;
- this_srt->masklen = $3;
+ this_srt->net = $2.addr;
+ this_srt->masklen = $2.len;
}
;