summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <>2009-08-26 17:37:24 +0000
committererdgeist <>2009-08-26 17:37:24 +0000
commit6c51fca9a1a657918ed66ea1154419a378515e0f (patch)
tree8b7076edcebb2f072a5bcdb5d24d97be1d262cf9
parent5364ea31ca709be61bed24127fe29dc1bd7ac198 (diff)
Introduce the concept of an ot_net into opentracker.
-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"