diff options
author | Pavel Machek <pavel@ucw.cz> | 1999-11-24 13:16:31 +0100 |
---|---|---|
committer | Pavel Machek <pavel@ucw.cz> | 1999-11-24 13:16:31 +0100 |
commit | 455ca441d99184e1514415bd7acb25f82d01366e (patch) | |
tree | edf0cb610ba2532a80b49279741dae2b9e62953f /filter/config.Y | |
parent | 8f013d9ca443d4ff39af7560039f108efa9ef474 (diff) | |
download | bird-455ca441d99184e1514415bd7acb25f82d01366e.tar bird-455ca441d99184e1514415bd7acb25f82d01366e.zip |
Check that prefixes are really prefixes + fix config file to
comply. (:-( 1.2.3.4/8 looks nicer than 1.0.0.0/8).
Diffstat (limited to 'filter/config.Y')
-rw-r--r-- | filter/config.Y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/filter/config.Y b/filter/config.Y index 726e13a..3a176df 100644 --- a/filter/config.Y +++ b/filter/config.Y @@ -184,7 +184,7 @@ pair: * Complex types, their bison value is struct f_val */ prefix_s: - IPA '/' NUM { $$.type = T_PREFIX; $$.val.px.ip = $1; $$.val.px.len = $3; cf_error( "%I/%d is not really prefix\n", $$.val.px.ip, $$.val.px.len ); } + IPA '/' NUM { $$.type = T_PREFIX; $$.val.px.ip = $1; $$.val.px.len = $3; if (ipa_nonzero(ipa_and($$.val.px.ip, ipa_not(ipa_mkmask($$.val.px.len))))) cf_error( "%I/%d is not really prefix\n", $$.val.px.ip, $$.val.px.len ); } ; prefix: |