summaryrefslogtreecommitdiff
path: root/main.h
diff options
context:
space:
mode:
authorPietro Bonfa <bonfus@gmail.com>2016-10-05 20:10:15 +0200
committerPietro Bonfa <bonfus@gmail.com>2016-10-05 20:10:15 +0200
commite5bf743ccb6f80b70a6017a39c30f7610012979b (patch)
treef3043694f401527fe28d75b323621ed11183ab54 /main.h
parent24a0f954ce773571aff6562084553028c8352142 (diff)
Added filter for hostname and port requests
Diffstat (limited to 'main.h')
-rw-r--r--main.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/main.h b/main.h
index 65494ef..c6579e2 100644
--- a/main.h
+++ b/main.h
@@ -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 */
77enum rules_policy_enum { ENFORCE, VALIDATE, NONE };
78typedef struct rule {
79 uint16_t port;
80 char * host;
81 struct rule *next;
82} rule;
76 83
77/**** GLOBAL VARIABLES ****/ 84/**** GLOBAL VARIABLES ****/
78extern Tox *tox; 85extern Tox *tox;