From 77de68825caae7a9cb1275b0020e49fa9cb27e29 Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Wed, 12 Apr 2000 12:10:37 +0000 Subject: BGP_PATH masks now actually work as data type. --- filter/filter.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'filter/filter.c') 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; -- cgit v1.2.3