summaryrefslogtreecommitdiff
path: root/main.h
diff options
context:
space:
mode:
authorGDR! <gdr@gdr.name>2016-10-12 13:45:51 +0200
committerGitHub <noreply@github.com>2016-10-12 13:45:51 +0200
commit91d3cf917678517623eee42acbb948cbe13e15ce (patch)
tree8bd1fc4fa46af4035c0254cd0ce7dfae1f2ef3f2 /main.h
parentd194df598555e6ba31d53f5b1ec74f370b869c8c (diff)
parent315ee76599c2ebf92c9fed9b13ffad5ef50b849b (diff)
Merge pull request #26 from bonfus/master
Limit allowed hostnames and ports
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..329135f 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 { 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;