diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-01-12 14:49:27 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-01-12 14:49:27 +0000 |
commit | a89bc2071408040efd07c6b7fdd00a95b03ab10c (patch) | |
tree | 633e07f084efc2c26968379c84eb9b4212f758d9 /src/ats/gnunet-service-ats_addresses.h | |
parent | 987e618a2240e7a8cf5c61e33af9bb413a118e7a (diff) | |
download | gnunet-a89bc2071408040efd07c6b7fdd00a95b03ab10c.tar.gz gnunet-a89bc2071408040efd07c6b7fdd00a95b03ab10c.zip |
- mlp
Diffstat (limited to 'src/ats/gnunet-service-ats_addresses.h')
-rw-r--r-- | src/ats/gnunet-service-ats_addresses.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/ats/gnunet-service-ats_addresses.h b/src/ats/gnunet-service-ats_addresses.h index 6e5d95f70..3709853a7 100644 --- a/src/ats/gnunet-service-ats_addresses.h +++ b/src/ats/gnunet-service-ats_addresses.h | |||
@@ -31,6 +31,49 @@ | |||
31 | #include "gnunet_ats_service.h" | 31 | #include "gnunet_ats_service.h" |
32 | #include "ats.h" | 32 | #include "ats.h" |
33 | 33 | ||
34 | struct ATS_Address | ||
35 | { | ||
36 | struct GNUNET_PeerIdentity peer; | ||
37 | |||
38 | size_t addr_len; | ||
39 | |||
40 | uint32_t session_id; | ||
41 | |||
42 | uint32_t ats_count; | ||
43 | |||
44 | const void *addr; | ||
45 | |||
46 | char *plugin; | ||
47 | |||
48 | struct GNUNET_ATS_Information *ats; | ||
49 | |||
50 | struct GNUNET_TIME_Relative atsp_latency; | ||
51 | |||
52 | struct GNUNET_BANDWIDTH_Value32NBO atsp_utilization_in; | ||
53 | |||
54 | struct GNUNET_BANDWIDTH_Value32NBO atsp_utilization_out; | ||
55 | |||
56 | uint32_t atsp_distance; | ||
57 | |||
58 | uint32_t atsp_cost_wan; | ||
59 | |||
60 | uint32_t atsp_cost_lan; | ||
61 | |||
62 | uint32_t atsp_cost_wlan; | ||
63 | |||
64 | uint32_t atsp_network_type; | ||
65 | |||
66 | struct GNUNET_BANDWIDTH_Value32NBO assigned_bw_in; | ||
67 | |||
68 | struct GNUNET_BANDWIDTH_Value32NBO assigned_bw_out; | ||
69 | |||
70 | /** | ||
71 | * Is this the active address for this peer? | ||
72 | */ | ||
73 | int active; | ||
74 | |||
75 | }; | ||
76 | |||
34 | /** | 77 | /** |
35 | * Initialize address subsystem. | 78 | * Initialize address subsystem. |
36 | * @param cfg configuration to use | 79 | * @param cfg configuration to use |