summaryrefslogtreecommitdiff
path: root/trackerlogic.h
diff options
context:
space:
mode:
Diffstat (limited to 'trackerlogic.h')
-rw-r--r--trackerlogic.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/trackerlogic.h b/trackerlogic.h
index 1843f7e..7d9c2e1 100644
--- a/trackerlogic.h
+++ b/trackerlogic.h
@@ -11,9 +11,11 @@
11#include <time.h> 11#include <time.h>
12#include <stdint.h> 12#include <stdint.h>
13 13
14typedef uint8_t ot_hash[20]; 14typedef uint8_t ot_hash[20];
15typedef time_t ot_time; 15typedef time_t ot_time;
16typedef char ot_ip6[16]; 16typedef char ot_ip6[16];
17typedef struct { ot_ip6 address; int bits; }
18 ot_net;
17#ifdef WANT_V6 19#ifdef WANT_V6
18#define OT_IP_SIZE 16 20#define OT_IP_SIZE 16
19#define PEERS_BENCODED "6:peers6" 21#define PEERS_BENCODED "6:peers6"