X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=postlicyd%2Ffilter.h;h=c950402e21523316a0227171d8391586ac366f08;hb=b90060d134b09aff84d0bd1312850abb9fc6fb9e;hp=f53b917684ac8fa73685eeddfbdde06e9ac5a976;hpb=d229b104fb45ef8a5b968da80383f571625fa976;p=apps%2Fpfixtools.git diff --git a/postlicyd/filter.h b/postlicyd/filter.h index f53b917..c950402 100644 --- a/postlicyd/filter.h +++ b/postlicyd/filter.h @@ -72,14 +72,13 @@ typedef struct filter_t { A(filter_param_t) params; - /* Internal: to check the filter tree structure. + /* Loop checking flags. */ - unsigned safe :1; - unsigned seen :1; + int last_seen; } filter_t; ARRAY(filter_t) -#define FILTER_INIT { NULL, FTK_UNKNOWN, ARRAY_INIT, NULL, ARRAY_INIT, false, false } +#define FILTER_INIT { NULL, FTK_UNKNOWN, ARRAY_INIT, NULL, ARRAY_INIT, -1 } #define CHECK_FILTER(Filter) \ assert(Filter != FTK_UNKNOWN && Filter != FTK_count \ && "Unknown filter type")