summaryrefslogtreecommitdiffstats
path: root/filter
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>2000-04-17 14:38:24 +0200
committerPavel Machek <pavel@ucw.cz>2000-04-17 14:38:24 +0200
commit708711c37306d6bc3a83935a4d4065814d9c4215 (patch)
tree6624281941c64aa931dde959965abaeb994fe51e /filter
parent913ce95b083b2d61e498c63fce3e8f2d5b974cfb (diff)
downloadbird-708711c37306d6bc3a83935a4d4065814d9c4215.tar
bird-708711c37306d6bc3a83935a4d4065814d9c4215.zip
Community lists can be now accessed as dynamical attributes. Mj:
please create such dynamic atribute for bgp.
Diffstat (limited to 'filter')
-rw-r--r--filter/filter.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/filter/filter.c b/filter/filter.c
index 6be055f..3ebc4f2 100644
--- a/filter/filter.c
+++ b/filter/filter.c
@@ -357,6 +357,7 @@ interpret(struct f_inst *what)
case T_INT:
res.val.i = e->u.data;
break;
+ case T_CLIST:
case T_PATH:
res.val.ad = e->u.ptr;
break;
@@ -390,6 +391,11 @@ interpret(struct f_inst *what)
runtime( "Setting path attribute to non-path value" );
l->attrs[0].u.ptr = v1.val.ad;
break;
+ case EAF_TYPE_INT_SET:
+ if (v1.type != T_CLIST)
+ runtime( "Setting int set attribute to non-clist value" );
+ l->attrs[0].u.ptr = v1.val.ad;
+ break;
case EAF_TYPE_UNDEF:
if (v1.type != T_VOID)
runtime( "Setting void attribute to non-void value" );