diff options
Diffstat (limited to 'src/ats/test_ats_mlp.c')
-rw-r--r-- | src/ats/test_ats_mlp.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/ats/test_ats_mlp.c b/src/ats/test_ats_mlp.c index ddcd41237..9726be38f 100644 --- a/src/ats/test_ats_mlp.c +++ b/src/ats/test_ats_mlp.c | |||
@@ -97,23 +97,26 @@ check (void *cls, char *const *args, const char *cfgfile, | |||
97 | set_ats (&a1_ats[1], GNUNET_ATS_QUALITY_NET_DELAY, 32); | 97 | set_ats (&a1_ats[1], GNUNET_ATS_QUALITY_NET_DELAY, 32); |
98 | set_ats (&a1_ats[2], GNUNET_ATS_ARRAY_TERMINATOR, 0); | 98 | set_ats (&a1_ats[2], GNUNET_ATS_ARRAY_TERMINATOR, 0); |
99 | create_address (&addr[0], "dummy", 3, &a1_ats[0]); | 99 | create_address (&addr[0], "dummy", 3, &a1_ats[0]); |
100 | addr[0].atsp_network_type = GNUNET_ATS_NET_WAN; | ||
100 | 101 | ||
101 | 102 | ||
102 | /* Creating peer 1 address 2 */ | 103 | /* Creating peer 1 address 2 */ |
103 | addr[1].peer.hashPubKey = p[0].hashPubKey; | 104 | addr[1].peer.hashPubKey = p[0].hashPubKey; |
104 | struct GNUNET_ATS_Information a2_ats[3]; | 105 | struct GNUNET_ATS_Information a2_ats[3]; |
105 | set_ats (&a2_ats[0], GNUNET_ATS_ARRAY_TERMINATOR, 0); | 106 | set_ats (&a2_ats[0], GNUNET_ATS_QUALITY_NET_DELAY, 32); |
106 | set_ats (&a2_ats[1], GNUNET_ATS_QUALITY_NET_DELAY, 32); | 107 | set_ats (&a2_ats[1], GNUNET_ATS_QUALITY_NET_DISTANCE, 1); |
107 | set_ats (&a2_ats[2], GNUNET_ATS_QUALITY_NET_DISTANCE, 1); | 108 | set_ats (&a2_ats[2], GNUNET_ATS_ARRAY_TERMINATOR, 0); |
108 | create_address (&addr[1], "dummy2", 3, &a2_ats[0]); | 109 | create_address (&addr[1], "dummy2", 3, &a2_ats[0]); |
110 | addr[1].atsp_network_type = GNUNET_ATS_NET_WAN; | ||
109 | 111 | ||
110 | /* Creating peer 2 address 1 */ | 112 | /* Creating peer 2 address 1 */ |
111 | addr[2].peer.hashPubKey = p[1].hashPubKey; | 113 | addr[2].peer.hashPubKey = p[1].hashPubKey; |
112 | struct GNUNET_ATS_Information a3_ats[3]; | 114 | struct GNUNET_ATS_Information a3_ats[3]; |
113 | set_ats (&a3_ats[0], GNUNET_ATS_ARRAY_TERMINATOR, 0); | 115 | set_ats (&a3_ats[0], GNUNET_ATS_QUALITY_NET_DELAY, 32); |
114 | set_ats (&a3_ats[1], GNUNET_ATS_QUALITY_NET_DELAY, 32); | 116 | set_ats (&a3_ats[1], GNUNET_ATS_QUALITY_NET_DISTANCE, 1); |
115 | set_ats (&a3_ats[2], GNUNET_ATS_QUALITY_NET_DISTANCE, 1); | 117 | set_ats (&a3_ats[2], GNUNET_ATS_ARRAY_TERMINATOR, 0); |
116 | create_address (&addr[2], "dummy3", 3, &a3_ats[0]); | 118 | create_address (&addr[2], "dummy3", 3, &a3_ats[0]); |
119 | addr[2].atsp_network_type = GNUNET_ATS_NET_LAN; | ||
117 | 120 | ||
118 | GNUNET_CONTAINER_multihashmap_put(addresses, &addr[0].peer.hashPubKey, &addr[0], GNUNET_CONTAINER_MULTIHASHMAPOPTION_MULTIPLE); | 121 | GNUNET_CONTAINER_multihashmap_put(addresses, &addr[0].peer.hashPubKey, &addr[0], GNUNET_CONTAINER_MULTIHASHMAPOPTION_MULTIPLE); |
119 | 122 | ||