diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-01-21 14:51:28 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-01-21 14:51:28 +0100 |
commit | 745cf54e655a9fb40a4ba3643de09a3471ca6ef6 (patch) | |
tree | c592fbe4609fd8256d96c4b32f94b4a1a0a5600a | |
parent | 0eec69c59e625ecc41dcff20bf2395613185d342 (diff) | |
download | gnunet-745cf54e655a9fb40a4ba3643de09a3471ca6ef6.tar.gz gnunet-745cf54e655a9fb40a4ba3643de09a3471ca6ef6.zip |
renames to avoid ambiguity
-rw-r--r-- | src/cadet/cadet.h | 8 | ||||
-rw-r--r-- | src/cadet/cadet_api.c | 24 | ||||
-rw-r--r-- | src/cadet/gnunet-service-cadet-new.c | 16 | ||||
-rw-r--r-- | src/cadet/gnunet-service-cadet-new_channel.c | 8 | ||||
-rw-r--r-- | src/cadet/gnunet-service-cadet_channel.c | 2 | ||||
-rw-r--r-- | src/cadet/gnunet-service-cadet_channel.h | 2 | ||||
-rw-r--r-- | src/cadet/gnunet-service-cadet_local.c | 26 | ||||
-rw-r--r-- | src/include/gnunet_protocols.h | 4 |
8 files changed, 45 insertions, 45 deletions
diff --git a/src/cadet/cadet.h b/src/cadet/cadet.h index 205955b05..a8cd6831a 100644 --- a/src/cadet/cadet.h +++ b/src/cadet/cadet.h | |||
@@ -135,10 +135,10 @@ struct GNUNET_CADET_PortMessage | |||
135 | /** | 135 | /** |
136 | * Message for a client to create channels. | 136 | * Message for a client to create channels. |
137 | */ | 137 | */ |
138 | struct GNUNET_CADET_TunnelCreateMessage | 138 | struct GNUNET_CADET_LocalChannelCreateMessage |
139 | { | 139 | { |
140 | /** | 140 | /** |
141 | * Type: #GNUNET_MESSAGE_TYPE_CADET_LOCAL_TUNNEL_CREATE | 141 | * Type: #GNUNET_MESSAGE_TYPE_CADET_LOCAL_CHANNEL_CREATE |
142 | * | 142 | * |
143 | * Size: sizeof(struct GNUNET_CADET_ChannelOpenMessageMessage) | 143 | * Size: sizeof(struct GNUNET_CADET_ChannelOpenMessageMessage) |
144 | */ | 144 | */ |
@@ -169,10 +169,10 @@ struct GNUNET_CADET_TunnelCreateMessage | |||
169 | /** | 169 | /** |
170 | * Message for or to a client to destroy tunnel. | 170 | * Message for or to a client to destroy tunnel. |
171 | */ | 171 | */ |
172 | struct GNUNET_CADET_TunnelDestroyMessage | 172 | struct GNUNET_CADET_LocalChannelDestroyMessage |
173 | { | 173 | { |
174 | /** | 174 | /** |
175 | * Type: #GNUNET_MESSAGE_TYPE_CADET_LOCAL_TUNNEL_DESTROY | 175 | * Type: #GNUNET_MESSAGE_TYPE_CADET_LOCAL_CHANNEL_DESTROY |
176 | */ | 176 | */ |
177 | struct GNUNET_MessageHeader header; | 177 | struct GNUNET_MessageHeader header; |
178 | 178 | ||
diff --git a/src/cadet/cadet_api.c b/src/cadet/cadet_api.c index fa67eb094..494aab612 100644 --- a/src/cadet/cadet_api.c +++ b/src/cadet/cadet_api.c | |||
@@ -588,7 +588,7 @@ request_data (void *cls) | |||
588 | */ | 588 | */ |
589 | static void | 589 | static void |
590 | handle_channel_created (void *cls, | 590 | handle_channel_created (void *cls, |
591 | const struct GNUNET_CADET_TunnelCreateMessage *msg) | 591 | const struct GNUNET_CADET_LocalChannelCreateMessage *msg) |
592 | { | 592 | { |
593 | struct GNUNET_CADET_Handle *h = cls; | 593 | struct GNUNET_CADET_Handle *h = cls; |
594 | struct GNUNET_CADET_Channel *ch; | 594 | struct GNUNET_CADET_Channel *ch; |
@@ -628,12 +628,12 @@ handle_channel_created (void *cls, | |||
628 | } | 628 | } |
629 | else | 629 | else |
630 | { | 630 | { |
631 | struct GNUNET_CADET_TunnelDestroyMessage *d_msg; | 631 | struct GNUNET_CADET_LocalChannelDestroyMessage *d_msg; |
632 | struct GNUNET_MQ_Envelope *env; | 632 | struct GNUNET_MQ_Envelope *env; |
633 | 633 | ||
634 | LOG (GNUNET_ERROR_TYPE_DEBUG, "No handler for incoming channels\n"); | 634 | LOG (GNUNET_ERROR_TYPE_DEBUG, "No handler for incoming channels\n"); |
635 | env = GNUNET_MQ_msg (d_msg, | 635 | env = GNUNET_MQ_msg (d_msg, |
636 | GNUNET_MESSAGE_TYPE_CADET_LOCAL_TUNNEL_DESTROY); | 636 | GNUNET_MESSAGE_TYPE_CADET_LOCAL_CHANNEL_DESTROY); |
637 | d_msg->channel_id = msg->channel_id; | 637 | d_msg->channel_id = msg->channel_id; |
638 | GNUNET_MQ_send (h->mq, env); | 638 | GNUNET_MQ_send (h->mq, env); |
639 | } | 639 | } |
@@ -649,7 +649,7 @@ handle_channel_created (void *cls, | |||
649 | */ | 649 | */ |
650 | static void | 650 | static void |
651 | handle_channel_destroy (void *cls, | 651 | handle_channel_destroy (void *cls, |
652 | const struct GNUNET_CADET_TunnelDestroyMessage *msg) | 652 | const struct GNUNET_CADET_LocalChannelDestroyMessage *msg) |
653 | { | 653 | { |
654 | struct GNUNET_CADET_Handle *h = cls; | 654 | struct GNUNET_CADET_Handle *h = cls; |
655 | struct GNUNET_CADET_Channel *ch; | 655 | struct GNUNET_CADET_Channel *ch; |
@@ -1282,12 +1282,12 @@ do_reconnect (struct GNUNET_CADET_Handle *h) | |||
1282 | { | 1282 | { |
1283 | struct GNUNET_MQ_MessageHandler handlers[] = { | 1283 | struct GNUNET_MQ_MessageHandler handlers[] = { |
1284 | GNUNET_MQ_hd_fixed_size (channel_created, | 1284 | GNUNET_MQ_hd_fixed_size (channel_created, |
1285 | GNUNET_MESSAGE_TYPE_CADET_LOCAL_TUNNEL_CREATE, | 1285 | GNUNET_MESSAGE_TYPE_CADET_LOCAL_CHANNEL_CREATE, |
1286 | struct GNUNET_CADET_TunnelCreateMessage, | 1286 | struct GNUNET_CADET_LocalChannelCreateMessage, |
1287 | h), | 1287 | h), |
1288 | GNUNET_MQ_hd_fixed_size (channel_destroy, | 1288 | GNUNET_MQ_hd_fixed_size (channel_destroy, |
1289 | GNUNET_MESSAGE_TYPE_CADET_LOCAL_TUNNEL_DESTROY, | 1289 | GNUNET_MESSAGE_TYPE_CADET_LOCAL_CHANNEL_DESTROY, |
1290 | struct GNUNET_CADET_TunnelDestroyMessage, | 1290 | struct GNUNET_CADET_LocalChannelDestroyMessage, |
1291 | h), | 1291 | h), |
1292 | GNUNET_MQ_hd_var_size (local_data, | 1292 | GNUNET_MQ_hd_var_size (local_data, |
1293 | GNUNET_MESSAGE_TYPE_CADET_LOCAL_DATA, | 1293 | GNUNET_MESSAGE_TYPE_CADET_LOCAL_DATA, |
@@ -1576,7 +1576,7 @@ GNUNET_CADET_channel_create (struct GNUNET_CADET_Handle *h, | |||
1576 | const struct GNUNET_HashCode *port, | 1576 | const struct GNUNET_HashCode *port, |
1577 | enum GNUNET_CADET_ChannelOption options) | 1577 | enum GNUNET_CADET_ChannelOption options) |
1578 | { | 1578 | { |
1579 | struct GNUNET_CADET_TunnelCreateMessage *msg; | 1579 | struct GNUNET_CADET_LocalChannelCreateMessage *msg; |
1580 | struct GNUNET_MQ_Envelope *env; | 1580 | struct GNUNET_MQ_Envelope *env; |
1581 | struct GNUNET_CADET_Channel *ch; | 1581 | struct GNUNET_CADET_Channel *ch; |
1582 | struct GNUNET_CADET_ClientChannelNumber chid; | 1582 | struct GNUNET_CADET_ClientChannelNumber chid; |
@@ -1592,7 +1592,7 @@ GNUNET_CADET_channel_create (struct GNUNET_CADET_Handle *h, | |||
1592 | ch->ctx = channel_ctx; | 1592 | ch->ctx = channel_ctx; |
1593 | ch->peer = GNUNET_PEER_intern (peer); | 1593 | ch->peer = GNUNET_PEER_intern (peer); |
1594 | 1594 | ||
1595 | env = GNUNET_MQ_msg (msg, GNUNET_MESSAGE_TYPE_CADET_LOCAL_TUNNEL_CREATE); | 1595 | env = GNUNET_MQ_msg (msg, GNUNET_MESSAGE_TYPE_CADET_LOCAL_CHANNEL_CREATE); |
1596 | msg->channel_id = ch->chid; | 1596 | msg->channel_id = ch->chid; |
1597 | msg->port = *port; | 1597 | msg->port = *port; |
1598 | msg->peer = *peer; | 1598 | msg->peer = *peer; |
@@ -1608,7 +1608,7 @@ void | |||
1608 | GNUNET_CADET_channel_destroy (struct GNUNET_CADET_Channel *channel) | 1608 | GNUNET_CADET_channel_destroy (struct GNUNET_CADET_Channel *channel) |
1609 | { | 1609 | { |
1610 | struct GNUNET_CADET_Handle *h; | 1610 | struct GNUNET_CADET_Handle *h; |
1611 | struct GNUNET_CADET_TunnelDestroyMessage *msg; | 1611 | struct GNUNET_CADET_LocalChannelDestroyMessage *msg; |
1612 | struct GNUNET_MQ_Envelope *env; | 1612 | struct GNUNET_MQ_Envelope *env; |
1613 | struct GNUNET_CADET_TransmitHandle *th; | 1613 | struct GNUNET_CADET_TransmitHandle *th; |
1614 | struct GNUNET_CADET_TransmitHandle *next; | 1614 | struct GNUNET_CADET_TransmitHandle *next; |
@@ -1638,7 +1638,7 @@ GNUNET_CADET_channel_destroy (struct GNUNET_CADET_Channel *channel) | |||
1638 | } | 1638 | } |
1639 | 1639 | ||
1640 | env = GNUNET_MQ_msg (msg, | 1640 | env = GNUNET_MQ_msg (msg, |
1641 | GNUNET_MESSAGE_TYPE_CADET_LOCAL_TUNNEL_DESTROY); | 1641 | GNUNET_MESSAGE_TYPE_CADET_LOCAL_CHANNEL_DESTROY); |
1642 | msg->channel_id = channel->chid; | 1642 | msg->channel_id = channel->chid; |
1643 | GNUNET_MQ_send (h->mq, env); | 1643 | GNUNET_MQ_send (h->mq, env); |
1644 | 1644 | ||
diff --git a/src/cadet/gnunet-service-cadet-new.c b/src/cadet/gnunet-service-cadet-new.c index b6bdcc9fc..a60ef647a 100644 --- a/src/cadet/gnunet-service-cadet-new.c +++ b/src/cadet/gnunet-service-cadet-new.c | |||
@@ -277,7 +277,7 @@ GSC_bind (struct CadetClient *c, | |||
277 | uint32_t options) | 277 | uint32_t options) |
278 | { | 278 | { |
279 | struct GNUNET_MQ_Envelope *env; | 279 | struct GNUNET_MQ_Envelope *env; |
280 | struct GNUNET_CADET_TunnelCreateMessage *msg; | 280 | struct GNUNET_CADET_LocalChannelCreateMessage *msg; |
281 | struct GNUNET_CADET_ClientChannelNumber lid; | 281 | struct GNUNET_CADET_ClientChannelNumber lid; |
282 | 282 | ||
283 | lid = client_get_next_lid (c); | 283 | lid = client_get_next_lid (c); |
@@ -289,7 +289,7 @@ GSC_bind (struct CadetClient *c, | |||
289 | 289 | ||
290 | /* notify local client about incoming connection! */ | 290 | /* notify local client about incoming connection! */ |
291 | env = GNUNET_MQ_msg (msg, | 291 | env = GNUNET_MQ_msg (msg, |
292 | GNUNET_MESSAGE_TYPE_CADET_LOCAL_TUNNEL_CREATE); | 292 | GNUNET_MESSAGE_TYPE_CADET_LOCAL_CHANNEL_CREATE); |
293 | msg->channel_id = lid; | 293 | msg->channel_id = lid; |
294 | msg->port = *port; | 294 | msg->port = *port; |
295 | msg->opt = htonl (options); | 295 | msg->opt = htonl (options); |
@@ -469,7 +469,7 @@ handle_port_close (void *cls, | |||
469 | */ | 469 | */ |
470 | static void | 470 | static void |
471 | handle_tunnel_create (void *cls, | 471 | handle_tunnel_create (void *cls, |
472 | const struct GNUNET_CADET_TunnelCreateMessage *tcm) | 472 | const struct GNUNET_CADET_LocalChannelCreateMessage *tcm) |
473 | { | 473 | { |
474 | struct CadetClient *c = cls; | 474 | struct CadetClient *c = cls; |
475 | struct CadetChannel *ch; | 475 | struct CadetChannel *ch; |
@@ -550,7 +550,7 @@ get_map_by_chid (struct CadetClient *c, | |||
550 | */ | 550 | */ |
551 | static void | 551 | static void |
552 | handle_tunnel_destroy (void *cls, | 552 | handle_tunnel_destroy (void *cls, |
553 | const struct GNUNET_CADET_TunnelDestroyMessage *msg) | 553 | const struct GNUNET_CADET_LocalChannelDestroyMessage *msg) |
554 | { | 554 | { |
555 | struct CadetClient *c = cls; | 555 | struct CadetClient *c = cls; |
556 | struct GNUNET_CADET_ClientChannelNumber chid; | 556 | struct GNUNET_CADET_ClientChannelNumber chid; |
@@ -1316,12 +1316,12 @@ GNUNET_SERVICE_MAIN | |||
1316 | struct GNUNET_CADET_PortMessage, | 1316 | struct GNUNET_CADET_PortMessage, |
1317 | NULL), | 1317 | NULL), |
1318 | GNUNET_MQ_hd_fixed_size (tunnel_create, | 1318 | GNUNET_MQ_hd_fixed_size (tunnel_create, |
1319 | GNUNET_MESSAGE_TYPE_CADET_LOCAL_TUNNEL_CREATE, | 1319 | GNUNET_MESSAGE_TYPE_CADET_LOCAL_CHANNEL_CREATE, |
1320 | struct GNUNET_CADET_TunnelCreateMessage, | 1320 | struct GNUNET_CADET_LocalChannelCreateMessage, |
1321 | NULL), | 1321 | NULL), |
1322 | GNUNET_MQ_hd_fixed_size (tunnel_destroy, | 1322 | GNUNET_MQ_hd_fixed_size (tunnel_destroy, |
1323 | GNUNET_MESSAGE_TYPE_CADET_LOCAL_TUNNEL_DESTROY, | 1323 | GNUNET_MESSAGE_TYPE_CADET_LOCAL_CHANNEL_DESTROY, |
1324 | struct GNUNET_CADET_TunnelDestroyMessage, | 1324 | struct GNUNET_CADET_LocalChannelDestroyMessage, |
1325 | NULL), | 1325 | NULL), |
1326 | GNUNET_MQ_hd_var_size (data, | 1326 | GNUNET_MQ_hd_var_size (data, |
1327 | GNUNET_MESSAGE_TYPE_CADET_LOCAL_DATA, | 1327 | GNUNET_MESSAGE_TYPE_CADET_LOCAL_DATA, |
diff --git a/src/cadet/gnunet-service-cadet-new_channel.c b/src/cadet/gnunet-service-cadet-new_channel.c index aac0d604d..d7981656c 100644 --- a/src/cadet/gnunet-service-cadet-new_channel.c +++ b/src/cadet/gnunet-service-cadet-new_channel.c | |||
@@ -665,7 +665,7 @@ GCCH_bind (struct CadetChannel *ch, | |||
665 | struct CadetClient *c) | 665 | struct CadetClient *c) |
666 | { | 666 | { |
667 | struct GNUNET_MQ_Envelope *env; | 667 | struct GNUNET_MQ_Envelope *env; |
668 | struct GNUNET_CADET_TunnelCreateMessage *tcm; | 668 | struct GNUNET_CADET_LocalChannelCreateMessage *tcm; |
669 | uint32_t options; | 669 | uint32_t options; |
670 | 670 | ||
671 | if (NULL != ch->retry_task) | 671 | if (NULL != ch->retry_task) |
@@ -694,7 +694,7 @@ GCCH_bind (struct CadetChannel *ch, | |||
694 | ch); | 694 | ch); |
695 | /* give client it's initial supply of ACKs */ | 695 | /* give client it's initial supply of ACKs */ |
696 | env = GNUNET_MQ_msg (tcm, | 696 | env = GNUNET_MQ_msg (tcm, |
697 | GNUNET_MESSAGE_TYPE_CADET_LOCAL_TUNNEL_CREATE); | 697 | GNUNET_MESSAGE_TYPE_CADET_LOCAL_CHANNEL_CREATE); |
698 | tcm->channel_id = ch->lid; | 698 | tcm->channel_id = ch->lid; |
699 | tcm->peer = *GCP_get_id (GCT_get_destination (ch->t)); | 699 | tcm->peer = *GCP_get_id (GCT_get_destination (ch->t)); |
700 | tcm->port = ch->port; | 700 | tcm->port = ch->port; |
@@ -973,11 +973,11 @@ void | |||
973 | GCCH_handle_remote_destroy (struct CadetChannel *ch) | 973 | GCCH_handle_remote_destroy (struct CadetChannel *ch) |
974 | { | 974 | { |
975 | struct GNUNET_MQ_Envelope *env; | 975 | struct GNUNET_MQ_Envelope *env; |
976 | struct GNUNET_CADET_TunnelDestroyMessage *tdm; | 976 | struct GNUNET_CADET_LocalChannelDestroyMessage *tdm; |
977 | 977 | ||
978 | ch->destroy = GNUNET_YES; | 978 | ch->destroy = GNUNET_YES; |
979 | env = GNUNET_MQ_msg (tdm, | 979 | env = GNUNET_MQ_msg (tdm, |
980 | GNUNET_MESSAGE_TYPE_CADET_LOCAL_TUNNEL_DESTROY); | 980 | GNUNET_MESSAGE_TYPE_CADET_LOCAL_CHANNEL_DESTROY); |
981 | tdm->channel_id = ch->lid; | 981 | tdm->channel_id = ch->lid; |
982 | GSC_send_to_client ((NULL != ch->owner) ? ch->owner : ch->dest, | 982 | GSC_send_to_client ((NULL != ch->owner) ? ch->owner : ch->dest, |
983 | env); | 983 | env); |
diff --git a/src/cadet/gnunet-service-cadet_channel.c b/src/cadet/gnunet-service-cadet_channel.c index 750acd8fd..1de6ea865 100644 --- a/src/cadet/gnunet-service-cadet_channel.c +++ b/src/cadet/gnunet-service-cadet_channel.c | |||
@@ -1847,7 +1847,7 @@ GCCH_handle_local_destroy (struct CadetChannel *ch, | |||
1847 | */ | 1847 | */ |
1848 | int | 1848 | int |
1849 | GCCH_handle_local_create (struct CadetClient *c, | 1849 | GCCH_handle_local_create (struct CadetClient *c, |
1850 | struct GNUNET_CADET_TunnelCreateMessage *msg) | 1850 | struct GNUNET_CADET_LocalChannelCreateMessage *msg) |
1851 | { | 1851 | { |
1852 | struct CadetChannel *ch; | 1852 | struct CadetChannel *ch; |
1853 | struct CadetTunnel *t; | 1853 | struct CadetTunnel *t; |
diff --git a/src/cadet/gnunet-service-cadet_channel.h b/src/cadet/gnunet-service-cadet_channel.h index e3926995f..9d4893269 100644 --- a/src/cadet/gnunet-service-cadet_channel.h +++ b/src/cadet/gnunet-service-cadet_channel.h | |||
@@ -226,7 +226,7 @@ GCCH_handle_local_destroy (struct CadetChannel *ch, | |||
226 | */ | 226 | */ |
227 | int | 227 | int |
228 | GCCH_handle_local_create (struct CadetClient *c, | 228 | GCCH_handle_local_create (struct CadetClient *c, |
229 | struct GNUNET_CADET_TunnelCreateMessage *msg); | 229 | struct GNUNET_CADET_LocalChannelCreateMessage *msg); |
230 | 230 | ||
231 | /** | 231 | /** |
232 | * Handler for cadet network payload traffic. | 232 | * Handler for cadet network payload traffic. |
diff --git a/src/cadet/gnunet-service-cadet_local.c b/src/cadet/gnunet-service-cadet_local.c index bfb4195a5..a993f5758 100644 --- a/src/cadet/gnunet-service-cadet_local.c +++ b/src/cadet/gnunet-service-cadet_local.c | |||
@@ -440,7 +440,7 @@ handle_channel_create (void *cls, struct GNUNET_SERVER_Client *client, | |||
440 | LOG (GNUNET_ERROR_TYPE_DEBUG, " by client %u\n", c->id); | 440 | LOG (GNUNET_ERROR_TYPE_DEBUG, " by client %u\n", c->id); |
441 | 441 | ||
442 | /* Message size sanity check */ | 442 | /* Message size sanity check */ |
443 | if (sizeof (struct GNUNET_CADET_TunnelCreateMessage) | 443 | if (sizeof (struct GNUNET_CADET_LocalChannelCreateMessage) |
444 | != ntohs (message->size)) | 444 | != ntohs (message->size)) |
445 | { | 445 | { |
446 | GNUNET_break (0); | 446 | GNUNET_break (0); |
@@ -450,7 +450,7 @@ handle_channel_create (void *cls, struct GNUNET_SERVER_Client *client, | |||
450 | 450 | ||
451 | if (GNUNET_OK != | 451 | if (GNUNET_OK != |
452 | GCCH_handle_local_create (c, | 452 | GCCH_handle_local_create (c, |
453 | (struct GNUNET_CADET_TunnelCreateMessage *) | 453 | (struct GNUNET_CADET_LocalChannelCreateMessage *) |
454 | message)) | 454 | message)) |
455 | { | 455 | { |
456 | GNUNET_SERVER_receive_done (client, GNUNET_SYSERR); | 456 | GNUNET_SERVER_receive_done (client, GNUNET_SYSERR); |
@@ -472,7 +472,7 @@ static void | |||
472 | handle_channel_destroy (void *cls, struct GNUNET_SERVER_Client *client, | 472 | handle_channel_destroy (void *cls, struct GNUNET_SERVER_Client *client, |
473 | const struct GNUNET_MessageHeader *message) | 473 | const struct GNUNET_MessageHeader *message) |
474 | { | 474 | { |
475 | const struct GNUNET_CADET_TunnelDestroyMessage *msg; | 475 | const struct GNUNET_CADET_LocalChannelDestroyMessage *msg; |
476 | struct CadetClient *c; | 476 | struct CadetClient *c; |
477 | struct CadetChannel *ch; | 477 | struct CadetChannel *ch; |
478 | struct GNUNET_CADET_ClientChannelNumber chid; | 478 | struct GNUNET_CADET_ClientChannelNumber chid; |
@@ -489,7 +489,7 @@ handle_channel_destroy (void *cls, struct GNUNET_SERVER_Client *client, | |||
489 | LOG (GNUNET_ERROR_TYPE_DEBUG, " by client %u\n", c->id); | 489 | LOG (GNUNET_ERROR_TYPE_DEBUG, " by client %u\n", c->id); |
490 | 490 | ||
491 | /* Message sanity check */ | 491 | /* Message sanity check */ |
492 | if (sizeof (struct GNUNET_CADET_TunnelDestroyMessage) | 492 | if (sizeof (struct GNUNET_CADET_LocalChannelDestroyMessage) |
493 | != ntohs (message->size)) | 493 | != ntohs (message->size)) |
494 | { | 494 | { |
495 | GNUNET_break (0); | 495 | GNUNET_break (0); |
@@ -497,7 +497,7 @@ handle_channel_destroy (void *cls, struct GNUNET_SERVER_Client *client, | |||
497 | return; | 497 | return; |
498 | } | 498 | } |
499 | 499 | ||
500 | msg = (const struct GNUNET_CADET_TunnelDestroyMessage *) message; | 500 | msg = (const struct GNUNET_CADET_LocalChannelDestroyMessage *) message; |
501 | 501 | ||
502 | /* Retrieve tunnel */ | 502 | /* Retrieve tunnel */ |
503 | chid = msg->channel_id; | 503 | chid = msg->channel_id; |
@@ -1127,10 +1127,10 @@ static struct GNUNET_SERVER_MessageHandler client_handlers[] = { | |||
1127 | sizeof (struct GNUNET_CADET_PortMessage)}, | 1127 | sizeof (struct GNUNET_CADET_PortMessage)}, |
1128 | {&handle_port_close, NULL, GNUNET_MESSAGE_TYPE_CADET_LOCAL_PORT_CLOSE, | 1128 | {&handle_port_close, NULL, GNUNET_MESSAGE_TYPE_CADET_LOCAL_PORT_CLOSE, |
1129 | sizeof (struct GNUNET_CADET_PortMessage)}, | 1129 | sizeof (struct GNUNET_CADET_PortMessage)}, |
1130 | {&handle_channel_create, NULL, GNUNET_MESSAGE_TYPE_CADET_LOCAL_TUNNEL_CREATE, | 1130 | {&handle_channel_create, NULL, GNUNET_MESSAGE_TYPE_CADET_LOCAL_CHANNEL_CREATE, |
1131 | sizeof (struct GNUNET_CADET_TunnelCreateMessage)}, | 1131 | sizeof (struct GNUNET_CADET_LocalChannelCreateMessage)}, |
1132 | {&handle_channel_destroy, NULL, GNUNET_MESSAGE_TYPE_CADET_LOCAL_TUNNEL_DESTROY, | 1132 | {&handle_channel_destroy, NULL, GNUNET_MESSAGE_TYPE_CADET_LOCAL_CHANNEL_DESTROY, |
1133 | sizeof (struct GNUNET_CADET_TunnelDestroyMessage)}, | 1133 | sizeof (struct GNUNET_CADET_LocalChannelDestroyMessage)}, |
1134 | {&handle_data, NULL, GNUNET_MESSAGE_TYPE_CADET_LOCAL_DATA, 0}, | 1134 | {&handle_data, NULL, GNUNET_MESSAGE_TYPE_CADET_LOCAL_DATA, 0}, |
1135 | {&handle_ack, NULL, GNUNET_MESSAGE_TYPE_CADET_LOCAL_ACK, | 1135 | {&handle_ack, NULL, GNUNET_MESSAGE_TYPE_CADET_LOCAL_ACK, |
1136 | sizeof (struct GNUNET_CADET_LocalAck)}, | 1136 | sizeof (struct GNUNET_CADET_LocalAck)}, |
@@ -1433,10 +1433,10 @@ GML_send_channel_create (struct CadetClient *c, | |||
1433 | uint32_t opt, | 1433 | uint32_t opt, |
1434 | const struct GNUNET_PeerIdentity *peer) | 1434 | const struct GNUNET_PeerIdentity *peer) |
1435 | { | 1435 | { |
1436 | struct GNUNET_CADET_TunnelCreateMessage msg; | 1436 | struct GNUNET_CADET_LocalChannelCreateMessage msg; |
1437 | 1437 | ||
1438 | msg.header.size = htons (sizeof (msg)); | 1438 | msg.header.size = htons (sizeof (msg)); |
1439 | msg.header.type = htons (GNUNET_MESSAGE_TYPE_CADET_LOCAL_TUNNEL_CREATE); | 1439 | msg.header.type = htons (GNUNET_MESSAGE_TYPE_CADET_LOCAL_CHANNEL_CREATE); |
1440 | msg.channel_id = id; | 1440 | msg.channel_id = id; |
1441 | msg.port = *port; | 1441 | msg.port = *port; |
1442 | msg.opt = htonl (opt); | 1442 | msg.opt = htonl (opt); |
@@ -1483,7 +1483,7 @@ void | |||
1483 | GML_send_channel_destroy (struct CadetClient *c, | 1483 | GML_send_channel_destroy (struct CadetClient *c, |
1484 | struct GNUNET_CADET_ClientChannelNumber id) | 1484 | struct GNUNET_CADET_ClientChannelNumber id) |
1485 | { | 1485 | { |
1486 | struct GNUNET_CADET_TunnelDestroyMessage msg; | 1486 | struct GNUNET_CADET_LocalChannelDestroyMessage msg; |
1487 | 1487 | ||
1488 | if (NULL == c) | 1488 | if (NULL == c) |
1489 | { | 1489 | { |
@@ -1493,7 +1493,7 @@ GML_send_channel_destroy (struct CadetClient *c, | |||
1493 | if (GNUNET_YES == c->shutting_down) | 1493 | if (GNUNET_YES == c->shutting_down) |
1494 | return; | 1494 | return; |
1495 | msg.header.size = htons (sizeof (msg)); | 1495 | msg.header.size = htons (sizeof (msg)); |
1496 | msg.header.type = htons (GNUNET_MESSAGE_TYPE_CADET_LOCAL_TUNNEL_DESTROY); | 1496 | msg.header.type = htons (GNUNET_MESSAGE_TYPE_CADET_LOCAL_CHANNEL_DESTROY); |
1497 | msg.channel_id = id; | 1497 | msg.channel_id = id; |
1498 | GNUNET_SERVER_notification_context_unicast (nc, c->handle, | 1498 | GNUNET_SERVER_notification_context_unicast (nc, c->handle, |
1499 | &msg.header, GNUNET_NO); | 1499 | &msg.header, GNUNET_NO); |
diff --git a/src/include/gnunet_protocols.h b/src/include/gnunet_protocols.h index cae19d5d8..4079aa0e4 100644 --- a/src/include/gnunet_protocols.h +++ b/src/include/gnunet_protocols.h | |||
@@ -2735,12 +2735,12 @@ extern "C" | |||
2735 | /** | 2735 | /** |
2736 | * Ask the cadet service to create a new channel. | 2736 | * Ask the cadet service to create a new channel. |
2737 | */ | 2737 | */ |
2738 | #define GNUNET_MESSAGE_TYPE_CADET_LOCAL_TUNNEL_CREATE 1024 | 2738 | #define GNUNET_MESSAGE_TYPE_CADET_LOCAL_CHANNEL_CREATE 1024 |
2739 | 2739 | ||
2740 | /** | 2740 | /** |
2741 | * Tell client that a channel was destroyed. | 2741 | * Tell client that a channel was destroyed. |
2742 | */ | 2742 | */ |
2743 | #define GNUNET_MESSAGE_TYPE_CADET_LOCAL_TUNNEL_DESTROY 1025 | 2743 | #define GNUNET_MESSAGE_TYPE_CADET_LOCAL_CHANNEL_DESTROY 1025 |
2744 | 2744 | ||
2745 | /********************************** Monitor *********************************/ | 2745 | /********************************** Monitor *********************************/ |
2746 | 2746 | ||