diff options
Diffstat (limited to 'ot_accesslist.h')
| -rw-r--r-- | ot_accesslist.h | 18 |
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 */ | ||
| 17 | void accesslist_init(void); | 19 | void accesslist_init(void); |
| 18 | void accesslist_deinit(void); | 20 | void accesslist_deinit(void); |
| 19 | int accesslist_hashisvalid(const ot_hash hash); | 21 | int accesslist_hashisvalid(const ot_hash hash); |
| @@ -64,22 +66,6 @@ int proxylist_add_network(const ot_net *proxy, const ot_net *net); | |||
| 64 | int proxylist_check_network(const ot_ip6 *proxy, const ot_ip6 address /* can be NULL to only check proxy */); | 66 | int 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 | ||
| 68 | typedef struct ot_log ot_log; | ||
| 69 | struct ot_log { | ||
| 70 | ot_ip6 ip; | ||
| 71 | uint8_t *data; | ||
| 72 | size_t size; | ||
| 73 | ot_time time; | ||
| 74 | ot_log *next; | ||
| 75 | }; | ||
| 76 | extern ot_log *g_logchain_first, *g_logchain_last; | ||
| 77 | |||
| 78 | void loglist_add_network(const ot_net *net); | ||
| 79 | void loglist_reset(void); | ||
| 80 | int loglist_check_address(const ot_ip6 address); | ||
| 81 | #endif | ||
| 82 | |||
| 83 | typedef enum { | 69 | typedef 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, |
