diff options
author | Pavel Machek <pavel@ucw.cz> | 2000-04-12 14:10:37 +0200 |
---|---|---|
committer | Pavel Machek <pavel@ucw.cz> | 2000-04-12 14:10:37 +0200 |
commit | 77de68825caae7a9cb1275b0020e49fa9cb27e29 (patch) | |
tree | 09da4aad6cd49926b4c9b17ddc25bb9fc5bee450 /filter/filter.c | |
parent | 78c6217c1e9f8a46026cecf6a6369b72d5d883b0 (diff) | |
download | bird-77de68825caae7a9cb1275b0020e49fa9cb27e29.tar bird-77de68825caae7a9cb1275b0020e49fa9cb27e29.zip |
BGP_PATH masks now actually work as data type.
Diffstat (limited to 'filter/filter.c')
-rw-r--r-- | filter/filter.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/filter/filter.c b/filter/filter.c index f3f8c23..9788edb 100644 --- a/filter/filter.c +++ b/filter/filter.c @@ -133,6 +133,7 @@ val_print(struct f_val v) case T_PAIR: PRINTF( "(%d,%d)", v.val.i >> 16, v.val.i & 0xffff ); break; 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: debug( "(path " ); { struct f_path *p = v.val.s; while (p) { debug("%d ", p->val); p=p->next; } debug(")" ); } break; default: PRINTF( "[unknown type %x]", v.type ); #undef PRINTF } @@ -248,6 +249,7 @@ interpret(struct f_inst *what) case T_IP: case T_PREFIX: case T_PAIR: + case T_PATH: if (sym->class != (SYM_VARIABLE | v2.type)) runtime( "Variable of bad type" ); * (struct f_val *) sym->aux2 = v2; |