diff options
author | Pietro Bonfa <bonfus@gmail.com> | 2016-10-05 20:10:15 +0200 |
---|---|---|
committer | Pietro Bonfa <bonfus@gmail.com> | 2016-10-05 20:10:15 +0200 |
commit | e5bf743ccb6f80b70a6017a39c30f7610012979b (patch) | |
tree | f3043694f401527fe28d75b323621ed11183ab54 /main.h | |
parent | 24a0f954ce773571aff6562084553028c8352142 (diff) |
Added filter for hostname and port requests
Diffstat (limited to 'main.h')
-rw-r--r-- | main.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -73,6 +73,13 @@ typedef struct protocol_frame_t { | |||
73 | uint8_t *data; | 73 | uint8_t *data; |
74 | } protocol_frame; | 74 | } protocol_frame; |
75 | 75 | ||
76 | /* Rules policy */ | ||
77 | enum rules_policy_enum { ENFORCE, VALIDATE, NONE }; | ||
78 | typedef struct rule { | ||
79 | uint16_t port; | ||
80 | char * host; | ||
81 | struct rule *next; | ||
82 | } rule; | ||
76 | 83 | ||
77 | /**** GLOBAL VARIABLES ****/ | 84 | /**** GLOBAL VARIABLES ****/ |
78 | extern Tox *tox; | 85 | extern Tox *tox; |