• 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_MARKMASK 11
12 
13 #include <stdbool.h>
14 
15 struct ssfilter
16 {
17 	int type;
18 	struct ssfilter *post;
19 	struct ssfilter *pred;
20 };
21 
22 int ssfilter_parse(struct ssfilter **f, int argc, char **argv, FILE *fp);
23 void *parse_hostcond(char *addr, bool is_port);
24 void *parse_markmask(const char *markmask);
25