summaryrefslogtreecommitdiffstats
path: root/filter/filter.c
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>2000-04-17 13:20:00 +0200
committerPavel Machek <pavel@ucw.cz>2000-04-17 13:20:00 +0200
commit159fa4cea9fb8f36db8335755248e0fac81fb050 (patch)
treef2b0e3b5ced7f1030feeceff5e178dfd46a378c3 /filter/filter.c
parent2a40efa5e6252eb5a5dbe5e82dcd9c67ad7838a9 (diff)
downloadbird-159fa4cea9fb8f36db8335755248e0fac81fb050.tar
bird-159fa4cea9fb8f36db8335755248e0fac81fb050.zip
Finish moving of path matching. Use int_set_print from core for
printing community lists.
Diffstat (limited to 'filter/filter.c')
-rw-r--r--filter/filter.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/filter/filter.c b/filter/filter.c
index 7fe902e..267fa16 100644
--- a/filter/filter.c
+++ b/filter/filter.c
@@ -20,6 +20,7 @@
#include "nest/route.h"
#include "nest/protocol.h"
#include "nest/iface.h"
+#include "nest/attrs.h"
#include "conf/conf.h"
#include "filter/filter.h"
@@ -138,6 +139,7 @@ val_print(struct f_val v)
case T_SET: tree_print( v.val.t ); PRINTF( "\n" ); break;
case T_ENUM: PRINTF( "(enum %x)%d", v.type, v.val.i ); break;
case T_PATH: as_path_format(v.val.ad, buf2, 1020); PRINTF( "(path %s)", buf2 ); break;
+ case T_CLIST: int_set_format(v.val.ad, buf2, 1020); PRINTF( "(clist %s)", buf2 ); break;
case T_PATH_MASK: debug( "(pathmask " ); { struct f_path_mask *p = v.val.s; while (p) { debug("%d ", p->val); p=p->next; } debug(")" ); } break;
default: PRINTF( "[unknown type %x]", v.type );
#undef PRINTF
@@ -616,9 +618,6 @@ filter_same(struct filter *new, struct filter *old)
}
/* This should end up far away from here!
- *
- * FIXME: It should take struct adata *, not u8 * + length; but that makes it a little more difficult to test.
- * Or maybe both versions are usefull?
*/
struct adata *
comlist_add(struct linpool *pool, struct adata *list, u32 val)