summaryrefslogtreecommitdiffstats
path: root/filter
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2009-10-12 20:44:58 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2009-10-12 20:44:58 +0200
commit52b9b2a1786140c38af03de570b0cc96c835c1d3 (patch)
treea19f18654f2ef3aed6d9d369258e9e8d693474f8 /filter
parentea89da381fc682155e7d08d6ad3d4ac8aa5fe115 (diff)
downloadbird-52b9b2a1786140c38af03de570b0cc96c835c1d3.tar
bird-52b9b2a1786140c38af03de570b0cc96c835c1d3.zip
Rename as_path_get_last/as_path_get_first to be consistent.
Diffstat (limited to 'filter')
-rw-r--r--filter/filter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/filter/filter.c b/filter/filter.c
index 7bcf383..07a25f4 100644
--- a/filter/filter.c
+++ b/filter/filter.c
@@ -734,7 +734,7 @@ interpret(struct f_inst *what)
runtime( "AS Path expected" );
as = 0;
- as_path_get_last(v1.val.ad, &as); /* really last */
+ as_path_get_first(v1.val.ad, &as);
res.type = T_INT;
res.val.i = as;
break;
@@ -744,7 +744,7 @@ interpret(struct f_inst *what)
runtime( "AS path expected" );
as = 0;
- as_path_get_first(v1.val.ad, &as); /* really first */
+ as_path_get_last(v1.val.ad, &as);
res.type = T_INT;
res.val.i = as;
break;