diff options
author | erdgeist <> | 2009-08-26 17:37:24 +0000 |
---|---|---|
committer | erdgeist <> | 2009-08-26 17:37:24 +0000 |
commit | 6c51fca9a1a657918ed66ea1154419a378515e0f (patch) | |
tree | 8b7076edcebb2f072a5bcdb5d24d97be1d262cf9 /trackerlogic.h | |
parent | 5364ea31ca709be61bed24127fe29dc1bd7ac198 (diff) |
Introduce the concept of an ot_net into opentracker.
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" |