From 6c51fca9a1a657918ed66ea1154419a378515e0f Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Wed, 26 Aug 2009 17:37:24 +0000 Subject: Introduce the concept of an ot_net into opentracker. --- trackerlogic.h | 8 +++++--- 1 file 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 @@ #include #include -typedef uint8_t ot_hash[20]; -typedef time_t ot_time; -typedef char ot_ip6[16]; +typedef uint8_t ot_hash[20]; +typedef time_t ot_time; +typedef char ot_ip6[16]; +typedef struct { ot_ip6 address; int bits; } + ot_net; #ifdef WANT_V6 #define OT_IP_SIZE 16 #define PEERS_BENCODED "6:peers6" -- cgit v1.2.3