diff options
Diffstat (limited to 'src/mesh')
-rw-r--r-- | src/mesh/mesh_common.c | 68 |
1 files changed, 39 insertions, 29 deletions
diff --git a/src/mesh/mesh_common.c b/src/mesh/mesh_common.c index 7a870f0da..c9af35c22 100644 --- a/src/mesh/mesh_common.c +++ b/src/mesh/mesh_common.c | |||
@@ -86,147 +86,157 @@ GNUNET_MESH_DEBUG_M2S (uint16_t m) | |||
86 | /** | 86 | /** |
87 | * Request the creation of a path | 87 | * Request the creation of a path |
88 | */ | 88 | */ |
89 | case 256: return "GNUNET_MESSAGE_TYPE_MESH_PATH_CREATE"; break; | 89 | case 256: return "GNUNET_MESSAGE_TYPE_MESH_PATH_CREATE"; |
90 | 90 | ||
91 | /** | 91 | /** |
92 | * Request the modification of an existing path | 92 | * Request the modification of an existing path |
93 | */ | 93 | */ |
94 | case 257: return "GNUNET_MESSAGE_TYPE_MESH_PATH_CHANGE"; break; | 94 | case 257: return "GNUNET_MESSAGE_TYPE_MESH_PATH_CHANGE"; |
95 | 95 | ||
96 | /** | 96 | /** |
97 | * Notify that a connection of a path is no longer valid | 97 | * Notify that a connection of a path is no longer valid |
98 | */ | 98 | */ |
99 | case 258: return "GNUNET_MESSAGE_TYPE_MESH_PATH_BROKEN"; break; | 99 | case 258: return "GNUNET_MESSAGE_TYPE_MESH_PATH_BROKEN"; |
100 | 100 | ||
101 | /** | 101 | /** |
102 | * At some point, the route will spontaneously change | 102 | * At some point, the route will spontaneously change |
103 | */ | 103 | */ |
104 | case 259: return "GNUNET_MESSAGE_TYPE_MESH_PATH_CHANGED"; break; | 104 | case 259: return "GNUNET_MESSAGE_TYPE_MESH_PATH_CHANGED"; |
105 | 105 | ||
106 | /** | 106 | /** |
107 | * Transport data in the mesh (origin->end) unicast | 107 | * Transport data in the mesh (origin->end) unicast |
108 | */ | 108 | */ |
109 | case 260: return "GNUNET_MESSAGE_TYPE_MESH_UNICAST"; break; | 109 | case 260: return "GNUNET_MESSAGE_TYPE_MESH_UNICAST"; |
110 | 110 | ||
111 | /** | 111 | /** |
112 | * Transport data to all peers in a tunnel | 112 | * Transport data to all peers in a tunnel |
113 | */ | 113 | */ |
114 | case 261: return "GNUNET_MESSAGE_TYPE_MESH_MULTICAST"; break; | 114 | case 261: return "GNUNET_MESSAGE_TYPE_MESH_MULTICAST"; |
115 | 115 | ||
116 | /** | 116 | /** |
117 | * Transport data back in the mesh (end->origin) | 117 | * Transport data back in the mesh (end->origin) |
118 | */ | 118 | */ |
119 | case 262: return "GNUNET_MESSAGE_TYPE_MESH_TO_ORIGIN"; break; | 119 | case 262: return "GNUNET_MESSAGE_TYPE_MESH_TO_ORIGIN"; |
120 | 120 | ||
121 | /** | 121 | /** |
122 | * Send origin an ACK that the path is complete | 122 | * Send origin an ACK that the path is complete |
123 | */ | 123 | */ |
124 | case 263: return "GNUNET_MESSAGE_TYPE_MESH_PATH_ACK"; break; | 124 | case 263: return "GNUNET_MESSAGE_TYPE_MESH_PATH_ACK"; |
125 | 125 | ||
126 | /** | 126 | /** |
127 | * Avoid path timeouts | 127 | * Avoid path timeouts |
128 | */ | 128 | */ |
129 | case 264: return "GNUNET_MESSAGE_TYPE_MESH_PATH_KEEPALIVE"; break; | 129 | case 264: return "GNUNET_MESSAGE_TYPE_MESH_PATH_KEEPALIVE"; |
130 | 130 | ||
131 | /** | 131 | /** |
132 | * Request the destuction of a path | 132 | * Request the destuction of a path |
133 | */ | 133 | */ |
134 | case 265: return "GNUNET_MESSAGE_TYPE_MESH_PATH_DESTROY"; break; | 134 | case 265: return "GNUNET_MESSAGE_TYPE_MESH_PATH_DESTROY"; |
135 | 135 | ||
136 | /** | 136 | /** |
137 | * Request the destruction of a whole tunnel | 137 | * Request the destruction of a whole tunnel |
138 | */ | 138 | */ |
139 | case 266: return "GNUNET_MESSAGE_TYPE_MESH_TUNNEL_DESTROY"; break; | 139 | case 266: return "GNUNET_MESSAGE_TYPE_MESH_TUNNEL_DESTROY"; |
140 | 140 | ||
141 | /** | 141 | /** |
142 | * ACK for a data packet. | 142 | * ACK for a data packet. |
143 | */ | 143 | */ |
144 | case 267: return "GNUNET_MESSAGE_TYPE_MESH_ACK"; break; | 144 | case 267: return "GNUNET_MESSAGE_TYPE_MESH_ACK"; |
145 | 145 | ||
146 | /** | 146 | /** |
147 | * POLL for ACK. | 147 | * POLL for ACK. |
148 | */ | 148 | */ |
149 | case 268: return "GNUNET_MESSAGE_TYPE_MESH_POLL"; break; | 149 | case 268: return "GNUNET_MESSAGE_TYPE_MESH_POLL"; |
150 | 150 | ||
151 | /** | 151 | /** |
152 | * Connect to the mesh service, specifying subscriptions | 152 | * Connect to the mesh service, specifying subscriptions |
153 | */ | 153 | */ |
154 | case 272: return "GNUNET_MESSAGE_TYPE_MESH_LOCAL_CONNECT"; break; | 154 | case 272: return "GNUNET_MESSAGE_TYPE_MESH_LOCAL_CONNECT"; |
155 | 155 | ||
156 | /** | 156 | /** |
157 | * Ask the mesh service to create a new tunnel | 157 | * Ask the mesh service to create a new tunnel |
158 | */ | 158 | */ |
159 | case 273: return "GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_CREATE"; break; | 159 | case 273: return "GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_CREATE"; |
160 | 160 | ||
161 | /** | 161 | /** |
162 | * Ask the mesh service to destroy a tunnel | 162 | * Ask the mesh service to destroy a tunnel |
163 | */ | 163 | */ |
164 | case 274: return "GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_DESTROY"; break; | 164 | case 274: return "GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_DESTROY"; |
165 | 165 | ||
166 | /** | 166 | /** |
167 | * Ask the mesh service to add a peer to an existing tunnel | 167 | * Ask the mesh service to add a peer to an existing tunnel |
168 | */ | 168 | */ |
169 | case 275: return "GNUNET_MESSAGE_TYPE_MESH_LOCAL_PEER_ADD"; break; | 169 | case 275: return "GNUNET_MESSAGE_TYPE_MESH_LOCAL_PEER_ADD"; |
170 | 170 | ||
171 | /** | 171 | /** |
172 | * Ask the mesh service to remove a peer from a tunnel | 172 | * Ask the mesh service to remove a peer from a tunnel |
173 | */ | 173 | */ |
174 | case 276: return "GNUNET_MESSAGE_TYPE_MESH_LOCAL_PEER_DEL"; break; | 174 | case 276: return "GNUNET_MESSAGE_TYPE_MESH_LOCAL_PEER_DEL"; |
175 | 175 | ||
176 | /** | 176 | /** |
177 | * Ask the mesh service to add a peer offering a service to an existing tunnel | 177 | * Ask the mesh service to add a peer offering a service to an existing tunnel |
178 | */ | 178 | */ |
179 | case 277: return "GNUNET_MESSAGE_TYPE_MESH_LOCAL_PEER_ADD_BY_TYPE"; break; | 179 | case 277: return "GNUNET_MESSAGE_TYPE_MESH_LOCAL_PEER_ADD_BY_TYPE"; |
180 | 180 | ||
181 | /** | 181 | /** |
182 | * Ask the mesh service to add a peer described by a service string | 182 | * Ask the mesh service to add a peer described by a service string |
183 | */ | 183 | */ |
184 | case 278: return "GNUNET_MESSAGE_TYPE_MESH_LOCAL_ANNOUNCE_REGEX"; break; | 184 | case 278: return "GNUNET_MESSAGE_TYPE_MESH_LOCAL_ANNOUNCE_REGEX"; |
185 | 185 | ||
186 | /** | 186 | /** |
187 | * Ask the mesh service to add a peer described by a service string | 187 | * Ask the mesh service to add a peer described by a service string |
188 | */ | 188 | */ |
189 | case 279: return "GNUNET_MESSAGE_TYPE_MESH_LOCAL_PEER_ADD_BY_STRING"; break; | 189 | case 279: return "GNUNET_MESSAGE_TYPE_MESH_LOCAL_PEER_ADD_BY_STRING"; |
190 | 190 | ||
191 | /** | 191 | /** |
192 | * Ask the mesh service to add a peer to the blacklist of an existing tunnel | 192 | * Ask the mesh service to add a peer to the blacklist of an existing tunnel |
193 | */ | 193 | */ |
194 | case 280: return "GNUNET_MESSAGE_TYPE_MESH_LOCAL_PEER_BLACKLIST"; break; | 194 | case 280: return "GNUNET_MESSAGE_TYPE_MESH_LOCAL_PEER_BLACKLIST"; |
195 | 195 | ||
196 | /** | 196 | /** |
197 | * Ask the mesh service to remove a peer from the blacklist of a tunnel | 197 | * Ask the mesh service to remove a peer from the blacklist of a tunnel |
198 | */ | 198 | */ |
199 | case 281: return "GNUNET_MESSAGE_TYPE_MESH_LOCAL_PEER_UNBLACKLIST"; break; | 199 | case 281: return "GNUNET_MESSAGE_TYPE_MESH_LOCAL_PEER_UNBLACKLIST"; |
200 | 200 | ||
201 | /** | 201 | /** |
202 | * Set tunnel speed to slowest peer | 202 | * Set tunnel speed to slowest peer |
203 | */ | 203 | */ |
204 | case 282: return "GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_MIN"; break; | 204 | case 282: return "GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_MIN"; |
205 | 205 | ||
206 | /** | 206 | /** |
207 | * Set tunnel speed to fastest peer | 207 | * Set tunnel speed to fastest peer |
208 | */ | 208 | */ |
209 | case 283: return "GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_MAX"; break; | 209 | case 283: return "GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_MAX"; |
210 | 210 | ||
211 | /** | 211 | /** |
212 | * Set tunnel buffering on. | 212 | * Set tunnel buffering on. |
213 | */ | 213 | */ |
214 | case 284: return "GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_BUFFER"; break; | 214 | case 284: return "GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_BUFFER"; |
215 | 215 | ||
216 | /** | 216 | /** |
217 | * Set tunnel buffering off. | 217 | * Set tunnel buffering off. |
218 | */ | 218 | */ |
219 | case 285: return "GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_NOBUFFER"; break; | 219 | case 285: return "GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_NOBUFFER"; |
220 | 220 | ||
221 | /** | 221 | /** |
222 | * Local ACK for data. | 222 | * Local ACK for data. |
223 | */ | 223 | */ |
224 | case 286: return "GNUNET_MESSAGE_TYPE_MESH_LOCAL_ACK"; break; | 224 | case 286: return "GNUNET_MESSAGE_TYPE_MESH_LOCAL_ACK"; |
225 | |||
226 | /** | ||
227 | * Local monitoring of service. | ||
228 | */ | ||
229 | case 287: return "GNUNET_MESSAGE_TYPE_MESH_LOCAL_MONITOR"; | ||
230 | |||
231 | /** | ||
232 | * Local monitoring of service of a specific tunnel. | ||
233 | */ | ||
234 | case 288: return "GNUNET_MESSAGE_TYPE_MESH_LOCAL_MONITOR_TUNNEL"; | ||
225 | 235 | ||
226 | /** | 236 | /** |
227 | * 640kb should be enough for everybody | 237 | * 640kb should be enough for everybody |
228 | */ | 238 | */ |
229 | case 299: return "GNUNET_MESSAGE_TYPE_MESH_RESERVE_END"; break; | 239 | case 299: return "GNUNET_MESSAGE_TYPE_MESH_RESERVE_END"; |
230 | } | 240 | } |
231 | sprintf(buf, "%u (UNKNOWN TYPE)", m); | 241 | sprintf(buf, "%u (UNKNOWN TYPE)", m); |
232 | return buf; | 242 | return buf; |