diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2011-12-12 17:11:37 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2011-12-12 17:11:37 +0000 |
commit | 7e2f0d10d9ac29559fb05e856621d8af38273a37 (patch) | |
tree | 57cc3d6940b3698074aa2cd6bbda9503282851c2 /src/include/gnunet_ats_service.h | |
parent | 4e925a6a3a9c415f5cc5df5dd746aa46127b8bda (diff) | |
download | gnunet-7e2f0d10d9ac29559fb05e856621d8af38273a37.tar.gz gnunet-7e2f0d10d9ac29559fb05e856621d8af38273a37.zip |
WAN/LAN detection
Mantis 1991
Diffstat (limited to 'src/include/gnunet_ats_service.h')
-rw-r--r-- | src/include/gnunet_ats_service.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/include/gnunet_ats_service.h b/src/include/gnunet_ats_service.h index ecbdd2f70..898a06654 100644 --- a/src/include/gnunet_ats_service.h +++ b/src/include/gnunet_ats_service.h | |||
@@ -31,6 +31,14 @@ | |||
31 | #include "gnunet_hello_lib.h" | 31 | #include "gnunet_hello_lib.h" |
32 | 32 | ||
33 | 33 | ||
34 | enum GNUNET_ATS_Network_Type | ||
35 | { | ||
36 | GNUNET_ATS_NET_UNSPECIFIED, | ||
37 | GNUNET_ATS_NET_LOOPBACK, | ||
38 | GNUNET_ATS_NET_LAN, | ||
39 | GNUNET_ATS_NET_WAN | ||
40 | }; | ||
41 | |||
34 | /** | 42 | /** |
35 | * Enum defining all known property types for ATS Enum values are used | 43 | * Enum defining all known property types for ATS Enum values are used |
36 | * in the GNUNET_ATS_Information struct as | 44 | * in the GNUNET_ATS_Information struct as |
@@ -63,6 +71,12 @@ enum GNUNET_ATS_Property | |||
63 | GNUNET_ATS_UTILIZATION_DOWN, | 71 | GNUNET_ATS_UTILIZATION_DOWN, |
64 | 72 | ||
65 | /** | 73 | /** |
74 | * Is this address located in WAN, LAN or a loopback address | ||
75 | * Value is element of GNUNET_ATS_Network_Type | ||
76 | */ | ||
77 | GNUNET_ATS_NETWORK_TYPE, | ||
78 | |||
79 | /** | ||
66 | * Delay | 80 | * Delay |
67 | * Time between when the time packet is sent and the packet arrives | 81 | * Time between when the time packet is sent and the packet arrives |
68 | * | 82 | * |