summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2009-11-15 14:24:20 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2009-11-15 14:24:20 +0100
commit2eece54a04d95f534b935ccac4c3959b25516bd5 (patch)
tree0ffbe98a90eaa0c7385a087031fcfcf1e20873e4
parent653b4015f137d9590147f8774ec686031696f81c (diff)
downloadbird-2eece54a04d95f534b935ccac4c3959b25516bd5.tar
bird-2eece54a04d95f534b935ccac4c3959b25516bd5.zip
Fixes bug related to reconfiguration with bgp_path first/last operators.
-rw-r--r--filter/filter.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/filter/filter.c b/filter/filter.c
index 07a25f4..b88039f 100644
--- a/filter/filter.c
+++ b/filter/filter.c
@@ -731,7 +731,7 @@ interpret(struct f_inst *what)
case P('a','f'): /* Get first ASN from AS PATH */
ONEARG;
if (v1.type != T_PATH)
- runtime( "AS Path expected" );
+ runtime( "AS path expected" );
as = 0;
as_path_get_first(v1.val.ad, &as);
@@ -942,6 +942,8 @@ i_same(struct f_inst *f1, struct f_inst *f2)
case P('i','M'): TWOARGS; break;
case P('A','p'): TWOARGS; break;
case P('C','a'): TWOARGS; break;
+ case P('a','f'):
+ case P('a','l'): ONEARG; break;
default:
bug( "Unknown instruction %d in same (%c)", f1->code, f1->code & 0xff);
}