summaryrefslogtreecommitdiff
path: root/ot_accesslist.h
diff options
context:
space:
mode:
Diffstat (limited to 'ot_accesslist.h')
-rw-r--r--ot_accesslist.h18
1 files changed, 2 insertions, 16 deletions
diff --git a/ot_accesslist.h b/ot_accesslist.h
index 0a8bf4c..ca0e126 100644
--- a/ot_accesslist.h
+++ b/ot_accesslist.h
@@ -14,6 +14,8 @@
14 14
15#if defined(WANT_ACCESSLIST_BLACK) || defined(WANT_ACCESSLIST_WHITE) 15#if defined(WANT_ACCESSLIST_BLACK) || defined(WANT_ACCESSLIST_WHITE)
16#define WANT_ACCESSLIST 16#define WANT_ACCESSLIST
17/* Starts a thread that rereads the list when sent SIGHUP, and is stopped by
18 being sent one, so the caller blocks SIGHUP process wide beforehand */
17void accesslist_init(void); 19void accesslist_init(void);
18void accesslist_deinit(void); 20void accesslist_deinit(void);
19int accesslist_hashisvalid(const ot_hash hash); 21int accesslist_hashisvalid(const ot_hash hash);
@@ -64,22 +66,6 @@ int proxylist_add_network(const ot_net *proxy, const ot_net *net);
64int proxylist_check_network(const ot_ip6 *proxy, const ot_ip6 address /* can be NULL to only check proxy */); 66int proxylist_check_network(const ot_ip6 *proxy, const ot_ip6 address /* can be NULL to only check proxy */);
65#endif 67#endif
66 68
67#ifdef WANT_FULLLOG_NETWORKS
68typedef struct ot_log ot_log;
69struct ot_log {
70 ot_ip6 ip;
71 uint8_t *data;
72 size_t size;
73 ot_time time;
74 ot_log *next;
75};
76extern ot_log *g_logchain_first, *g_logchain_last;
77
78void loglist_add_network(const ot_net *net);
79void loglist_reset(void);
80int loglist_check_address(const ot_ip6 address);
81#endif
82
83typedef enum { 69typedef enum {
84 OT_PERMISSION_MAY_FULLSCRAPE = 0x1, 70 OT_PERMISSION_MAY_FULLSCRAPE = 0x1,
85 OT_PERMISSION_MAY_STAT = 0x2, 71 OT_PERMISSION_MAY_STAT = 0x2,