diff options
Diffstat (limited to 'trackerlogic.h')
-rw-r--r-- | trackerlogic.h | 8 |
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 | ||
14 | typedef uint8_t ot_hash[20]; | 14 | typedef uint8_t ot_hash[20]; |
15 | typedef time_t ot_time; | 15 | typedef time_t ot_time; |
16 | typedef char ot_ip6[16]; | 16 | typedef char ot_ip6[16]; |
17 | typedef 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" |