• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #define SSF_DEVCOND 10
12 #define SSF_MARKMASK 11
13 
14 #include <stdbool.h>
15 
16 struct ssfilter
17 {
18 	int type;
19 	struct ssfilter *post;
20 	struct ssfilter *pred;
21 };
22 
23 int ssfilter_parse(struct ssfilter **f, int argc, char **argv, FILE *fp);
24 void *parse_hostcond(char *addr, bool is_port);
25 void *parse_devcond(char *name);
26 void *parse_markmask(const char *markmask);
27