1 #define SSF_DCOND 0 2 #define SSF_SCOND 1 3 #define SSF_OR 2 4 #define SSF_AND 3 5 #define SSF_NOT 4 6 #define SSF_D_GE 5 7 #define SSF_D_LE 6 8 #define SSF_S_GE 7 9 #define SSF_S_LE 8 10 #define SSF_S_AUTO 9 11 12 #include <stdbool.h> 13 14 struct ssfilter 15 { 16 int type; 17 struct ssfilter *post; 18 struct ssfilter *pred; 19 }; 20 21 int ssfilter_parse(struct ssfilter **f, int argc, char **argv, FILE *fp); 22 void *parse_hostcond(char *addr, bool is_port); 23