diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2023-11-23 03:17:11 +0100 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2023-11-23 03:17:11 +0100 |
commit | bc9eb2e2b154142d58dab866f5c6b5a4f189d3b0 (patch) | |
tree | ff768ac2da68d77d692656ca032e1d5bde4fc000 | |
parent | 80c9c39cb76d0c6a31a33d1305cdd10011f582cc (diff) |
WIP: fix FI_TLVLIST_(DELETE|FILTER)_XXX
-rw-r--r-- | filter/f-inst.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/filter/f-inst.c b/filter/f-inst.c index fbb68a96..33663329 100644 --- a/filter/f-inst.c +++ b/filter/f-inst.c @@ -1467,7 +1467,6 @@ RESULT(T_LCLIST, ad, [[ lclist_filter(fpool, v1.val.ad, &v2, 0) ]]); } -#if 0 INST(FI_TLVLIST_DELETE_SET, 2, 1) { ARG(1, T_TLVLIST); ARG(2, T_SET); @@ -1476,9 +1475,12 @@ if (!subtlv_set_type(v2.val.t)) runtime("Mismatched set type"); +#if 0 RESULT(T_TLVLIST, tl, [[ tlvlist_filter(fpool, v1.val.tl, &v2, 0) ]]); - } +#else + runtime("FI_TLVLIST_DELETE_SET disabled"); #endif + } INST(FI_PATH_FILTER_SET, 2, 1) { ARG(1, T_PATH); @@ -1545,13 +1547,16 @@ RESULT(T_LCLIST, ad, [[ lclist_filter(fpool, v1.val.ad, &v2, 1) ]]); } -#if 0 INST(FI_TLVLIST_FILTER_TLVLIST, 2, 1) { ARG(1, T_TLVLIST); ARG(2, T_SET); METHOD_CONSTRUCTOR("filter"); +#if 0 RESULT(T_TLVLIST, tl, [[ tlvlist_filter(fpool, v1.val.tl, &v2, 1) ]]); +#else + runtime("FI_TLVLIST_FILTER_TLVLIST disabled"); +#endif } INST(FI_TLVLIST_FILTER_SET, 2, 1) { @@ -1562,9 +1567,12 @@ if (!subtlv_set_type(v2.val.t)) runtime("Mismatched set type"); +#if 0 RESULT(T_TLVLIST, tl, [[ tlvlist_filter(fpool, v1.val.tl, &v2, 1) ]]); - } +#else + runtime("FI_TLVLIST_FILTER_SET disabled"); #endif + } INST(FI_ROA_CHECK_IMPLICIT, 0, 1) { /* ROA Check */ NEVER_CONSTANT; |