aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2014-02-19 20:02:15 +0000
committerBart Polot <bart@net.in.tum.de>2014-02-19 20:02:15 +0000
commit77280c43f11c61db710f8844a7fc0e6c23ac6ea1 (patch)
treed575fa4e522055af8670120980886eb022a938d2 /src
parent94e98bee0cec32252016121bb91ef5281d3d3978 (diff)
downloadgnunet-77280c43f11c61db710f8844a7fc0e6c23ac6ea1.tar.gz
gnunet-77280c43f11c61db710f8844a7fc0e6c23ac6ea1.zip
- simplify message names
Diffstat (limited to 'src')
-rw-r--r--src/mesh/mesh_common.c62
1 files changed, 31 insertions, 31 deletions
diff --git a/src/mesh/mesh_common.c b/src/mesh/mesh_common.c
index a5e4358aa..3f9258132 100644
--- a/src/mesh/mesh_common.c
+++ b/src/mesh/mesh_common.c
@@ -87,157 +87,157 @@ GM_m2s (uint16_t m)
87 /** 87 /**
88 * Request the creation of a path 88 * Request the creation of a path
89 */ 89 */
90 case 256: return "GNUNET_MESSAGE_TYPE_MESH_CONNECTION_CREATE"; 90 case 256: return "CONNECTION_CREATE";
91 91
92 /** 92 /**
93 * Request the modification of an existing path 93 * Request the modification of an existing path
94 */ 94 */
95 case 257: return "GNUNET_MESSAGE_TYPE_MESH_CONNECTION_ACK"; 95 case 257: return "CONNECTION_ACK";
96 96
97 /** 97 /**
98 * Notify that a connection of a path is no longer valid 98 * Notify that a connection of a path is no longer valid
99 */ 99 */
100 case 258: return "GNUNET_MESSAGE_TYPE_MESH_CONNECTION_BROKEN"; 100 case 258: return "CONNECTION_BROKEN";
101 101
102 /** 102 /**
103 * At some point, the route will spontaneously change 103 * At some point, the route will spontaneously change
104 */ 104 */
105 case 259: return "GNUNET_MESSAGE_TYPE_MESH_PATH_CHANGED"; 105 case 259: return "PATH_CHANGED";
106 106
107 /** 107 /**
108 * Transport payload data. 108 * Transport payload data.
109 */ 109 */
110 case 260: return "GNUNET_MESSAGE_TYPE_MESH_DATA"; 110 case 260: return "DATA";
111 111
112 /** 112 /**
113 * Confirm receipt of payload data. 113 * Confirm receipt of payload data.
114 */ 114 */
115 case 261: return "GNUNET_MESSAGE_TYPE_MESH_DATA_ACK"; 115 case 261: return "DATA_ACK";
116 116
117 /** 117 /**
118 * Key exchange encapsulation. 118 * Key exchange encapsulation.
119 */ 119 */
120 case 262: return "GNUNET_MESSAGE_TYPE_MESH_KX"; 120 case 262: return "KX";
121 121
122 /** 122 /**
123 * New ephemeral key. 123 * New ephemeral key.
124 */ 124 */
125 case 263: return "GNUNET_MESSAGE_TYPE_MESH_KX_EPHEMERAL"; 125 case 263: return "KX_EPHEMERAL";
126 126
127 /** 127 /**
128 * Challenge to test peer's session key. 128 * Challenge to test peer's session key.
129 */ 129 */
130 case 264: return "GNUNET_MESSAGE_TYPE_MESH_KX_PING"; 130 case 264: return "KX_PING";
131 131
132 /** 132 /**
133 * Answer to session key challenge. 133 * Answer to session key challenge.
134 */ 134 */
135 case 265: return "GNUNET_MESSAGE_TYPE_MESH_KX_PONG"; 135 case 265: return "KX_PONG";
136 136
137 /** 137 /**
138 * Request the destuction of a path 138 * Request the destuction of a path
139 */ 139 */
140 case 266: return "GNUNET_MESSAGE_TYPE_MESH_CONNECTION_DESTROY"; 140 case 266: return "CONNECTION_DESTROY";
141 141
142 /** 142 /**
143 * ACK for a data packet. 143 * ACK for a data packet.
144 */ 144 */
145 case 268: return "GNUNET_MESSAGE_TYPE_MESH_ACK"; 145 case 268: return "ACK";
146 146
147 /** 147 /**
148 * POLL for ACK. 148 * POLL for ACK.
149 */ 149 */
150 case 269: return "GNUNET_MESSAGE_TYPE_MESH_POLL"; 150 case 269: return "POLL";
151 151
152 /** 152 /**
153 * Announce origin is still alive. 153 * Announce origin is still alive.
154 */ 154 */
155 case 270: return "GNUNET_MESSAGE_TYPE_MESH_KEEPALIVE"; 155 case 270: return "KEEPALIVE";
156 156
157 /** 157 /**
158 * Connect to the mesh service, specifying subscriptions 158 * Connect to the mesh service, specifying subscriptions
159 */ 159 */
160 case 272: return "GNUNET_MESSAGE_TYPE_MESH_LOCAL_CONNECT"; 160 case 272: return "LOCAL_CONNECT";
161 161
162 /** 162 /**
163 * Ask the mesh service to create a new tunnel 163 * Ask the mesh service to create a new tunnel
164 */ 164 */
165 case 273: return "GNUNET_MESSAGE_TYPE_MESH_CHANNEL_CREATE"; 165 case 273: return "CHANNEL_CREATE";
166 166
167 /** 167 /**
168 * Ask the mesh service to destroy a tunnel 168 * Ask the mesh service to destroy a tunnel
169 */ 169 */
170 case 274: return "GNUNET_MESSAGE_TYPE_MESH_CHANNEL_DESTROY"; 170 case 274: return "CHANNEL_DESTROY";
171 171
172 /** 172 /**
173 * Confirm the creation of a channel. 173 * Confirm the creation of a channel.
174 */ 174 */
175 case 275: return "GNUNET_MESSAGE_TYPE_MESH_CHANNEL_ACK"; 175 case 275: return "CHANNEL_ACK";
176 176
177 /** 177 /**
178 * Confirm the creation of a channel. 178 * Confirm the creation of a channel.
179 */ 179 */
180 case 276: return "GNUNET_MESSAGE_TYPE_MESH_CHANNEL_NACK"; 180 case 276: return "CHANNEL_NACK";
181 181
182 /** 182 /**
183 * Encrypted payload. 183 * Encrypted payload.
184 */ 184 */
185 case 280: return "GNUNET_MESSAGE_TYPE_MESH_ENCRYPTED"; 185 case 280: return "ENCRYPTED";
186 186
187 /** 187 /**
188 * Local payload traffic 188 * Local payload traffic
189 */ 189 */
190 case 285: return "GNUNET_MESSAGE_TYPE_MESH_LOCAL_DATA"; 190 case 285: return "LOCAL_DATA";
191 191
192 /** 192 /**
193 * Local ACK for data. 193 * Local ACK for data.
194 */ 194 */
195 case 286: return "GNUNET_MESSAGE_TYPE_MESH_LOCAL_ACK"; 195 case 286: return "LOCAL_ACK";
196 196
197 /** 197 /**
198 * Local monitoring of service. 198 * Local monitoring of service.
199 */ 199 */
200 case 287: return "GNUNET_MESSAGE_TYPE_MESH_LOCAL_NACK"; 200 case 287: return "LOCAL_NACK";
201 201
202 /** 202 /**
203 * Local monitoring of service. 203 * Local monitoring of service.
204 */ 204 */
205 case 292: return "GNUNET_MESSAGE_TYPE_MESH_LOCAL_INFO_TUNNELS"; 205 case 292: return "LOCAL_INFO_TUNNELS";
206 206
207 /** 207 /**
208 * Local monitoring of service. 208 * Local monitoring of service.
209 */ 209 */
210 case 293: return "GNUNET_MESSAGE_TYPE_MESH_LOCAL_INFO_TUNNEL"; 210 case 293: return "LOCAL_INFO_TUNNEL";
211 211
212 /** 212 /**
213 * Local information about all connections of service. 213 * Local information about all connections of service.
214 */ 214 */
215 case 294: return "GNUNET_MESSAGE_TYPE_MESH_LOCAL_INFO_CONNECTIONS"; 215 case 294: return "LOCAL_INFO_CONNECTIONS";
216 216
217 /** 217 /**
218 * Local information of service about a specific connection. 218 * Local information of service about a specific connection.
219 */ 219 */
220 case 295: return "GNUNET_MESSAGE_TYPE_MESH_LOCAL_INFO_CONNECTION"; 220 case 295: return "LOCAL_INFO_CONNECTION";
221 221
222 /** 222 /**
223 * Local information about all peers known to the service. 223 * Local information about all peers known to the service.
224 */ 224 */
225 case 296: return "GNUNET_MESSAGE_TYPE_MESH_LOCAL_INFO_PEERS"; 225 case 296: return "LOCAL_INFO_PEERS";
226 226
227 /** 227 /**
228 * Local information of service about a specific peer. 228 * Local information of service about a specific peer.
229 */ 229 */
230 case 297: return "GNUNET_MESSAGE_TYPE_MESH_LOCAL_INFO_PEER"; 230 case 297: return "LOCAL_INFO_PEER";
231 231
232 /** 232 /**
233 * Traffic (net-cat style) used by the Command Line Interface. 233 * Traffic (net-cat style) used by the Command Line Interface.
234 */ 234 */
235 case 298: return "GNUNET_MESSAGE_TYPE_MESH_CLI"; 235 case 298: return "CLI";
236 236
237 /** 237 /**
238 * 640kb should be enough for everybody 238 * 640kb should be enough for everybody
239 */ 239 */
240 case 299: return "GNUNET_MESSAGE_TYPE_MESH_RESERVE_END"; 240 case 299: return "RESERVE_END";
241 } 241 }
242 sprintf(buf, "%u (UNKNOWN TYPE)", m); 242 sprintf(buf, "%u (UNKNOWN TYPE)", m);
243 return buf; 243 return buf;