aboutsummaryrefslogtreecommitdiff
path: root/src/cadet/gnunet-service-cadet_peer.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-01-18 14:49:17 +0100
committerChristian Grothoff <christian@grothoff.org>2017-01-18 14:49:17 +0100
commite02d76e46cd00724d32f81375e8981524ee6f3e2 (patch)
tree91a6aea89bfda7865f04244e2fb2a6ebb019bc3a /src/cadet/gnunet-service-cadet_peer.c
parent9f1d39a86ddb227f91ad75f740d59adeb9b6ee31 (diff)
downloadgnunet-e02d76e46cd00724d32f81375e8981524ee6f3e2.tar.gz
gnunet-e02d76e46cd00724d32f81375e8981524ee6f3e2.zip
more rename festivities
Diffstat (limited to 'src/cadet/gnunet-service-cadet_peer.c')
-rw-r--r--src/cadet/gnunet-service-cadet_peer.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/cadet/gnunet-service-cadet_peer.c b/src/cadet/gnunet-service-cadet_peer.c
index 2b11040a5..3f8b7bbb8 100644
--- a/src/cadet/gnunet-service-cadet_peer.c
+++ b/src/cadet/gnunet-service-cadet_peer.c
@@ -526,7 +526,7 @@ handle_destroy (void *cls, const struct GNUNET_CADET_ConnectionDestroyMessage *m
526 526
527 527
528/** 528/**
529 * Handle for #GNUNET_MESSAGE_TYPE_CADET_ENCRYPTED_HOP_BY_HOP_ACK 529 * Handle for #GNUNET_MESSAGE_TYPE_CADET_CONNECTION_HOP_BY_HOP_ENCRYPTED_ACK
530 * 530 *
531 * @param cls Closure (CadetPeer for neighbor that sent the message). 531 * @param cls Closure (CadetPeer for neighbor that sent the message).
532 * @param msg Message itself. 532 * @param msg Message itself.
@@ -540,7 +540,7 @@ handle_ack (void *cls, const struct GNUNET_CADET_ConnectionEncryptedAckMessage *
540 540
541 541
542/** 542/**
543 * Handle for #GNUNET_MESSAGE_TYPE_CADET_CONNECTION_HOP_BY_HOP_POLL 543 * Handle for #GNUNET_MESSAGE_TYPE_CADET_TUNNEL_ENCRYPTED_POLL
544 * 544 *
545 * @param cls Closure (CadetPeer for neighbor that sent the message). 545 * @param cls Closure (CadetPeer for neighbor that sent the message).
546 * @param msg Message itself. 546 * @param msg Message itself.
@@ -576,13 +576,13 @@ handle_kx (void *cls, const struct GNUNET_CADET_TunnelKeyExchangeMessage *msg)
576 * @return #GNUNET_YES if size is correct, #GNUNET_NO otherwise. 576 * @return #GNUNET_YES if size is correct, #GNUNET_NO otherwise.
577 */ 577 */
578static int 578static int
579check_encrypted (void *cls, const struct GNUNET_CADET_ConnectionEncryptedMessage *msg) 579check_encrypted (void *cls, const struct GNUNET_CADET_TunnelEncryptedMessage *msg)
580{ 580{
581 uint16_t size; 581 uint16_t size;
582 uint16_t minimum_size; 582 uint16_t minimum_size;
583 583
584 size = ntohs (msg->header.size); 584 size = ntohs (msg->header.size);
585 minimum_size = sizeof (struct GNUNET_CADET_ConnectionEncryptedMessage) 585 minimum_size = sizeof (struct GNUNET_CADET_TunnelEncryptedMessage)
586 + sizeof (struct GNUNET_MessageHeader); 586 + sizeof (struct GNUNET_MessageHeader);
587 587
588 if (size < minimum_size) 588 if (size < minimum_size)
@@ -594,13 +594,13 @@ check_encrypted (void *cls, const struct GNUNET_CADET_ConnectionEncryptedMessage
594} 594}
595 595
596/** 596/**
597 * Handle for #GNUNET_MESSAGE_TYPE_CONNECTION_ENCRYPTED. 597 * Handle for #GNUNET_MESSAGE_TYPE_CADET_TUNNEL_ENCRYPTED.
598 * 598 *
599 * @param cls Closure (CadetPeer for neighbor that sent the message). 599 * @param cls Closure (CadetPeer for neighbor that sent the message).
600 * @param msg Message itself. 600 * @param msg Message itself.
601 */ 601 */
602static void 602static void
603handle_encrypted (void *cls, const struct GNUNET_CADET_ConnectionEncryptedMessage *msg) 603handle_encrypted (void *cls, const struct GNUNET_CADET_TunnelEncryptedMessage *msg)
604{ 604{
605 struct CadetPeer *peer = cls; 605 struct CadetPeer *peer = cls;
606 GCC_handle_encrypted (peer, msg); 606 GCC_handle_encrypted (peer, msg);
@@ -639,11 +639,11 @@ connect_to_core (const struct GNUNET_CONFIGURATION_Handle *c)
639 struct GNUNET_CADET_ConnectionDestroyMessage, 639 struct GNUNET_CADET_ConnectionDestroyMessage,
640 NULL), 640 NULL),
641 GNUNET_MQ_hd_fixed_size (ack, 641 GNUNET_MQ_hd_fixed_size (ack,
642 GNUNET_MESSAGE_TYPE_CADET_ENCRYPTED_HOP_BY_HOP_ACK, 642 GNUNET_MESSAGE_TYPE_CADET_CONNECTION_HOP_BY_HOP_ENCRYPTED_ACK,
643 struct GNUNET_CADET_ConnectionEncryptedAckMessage, 643 struct GNUNET_CADET_ConnectionEncryptedAckMessage,
644 NULL), 644 NULL),
645 GNUNET_MQ_hd_fixed_size (poll, 645 GNUNET_MQ_hd_fixed_size (poll,
646 GNUNET_MESSAGE_TYPE_CADET_CONNECTION_HOP_BY_HOP_POLL, 646 GNUNET_MESSAGE_TYPE_CADET_TUNNEL_ENCRYPTED_POLL,
647 struct GNUNET_CADET_ConnectionHopByHopPollMessage, 647 struct GNUNET_CADET_ConnectionHopByHopPollMessage,
648 NULL), 648 NULL),
649 GNUNET_MQ_hd_fixed_size (kx, 649 GNUNET_MQ_hd_fixed_size (kx,
@@ -651,8 +651,8 @@ connect_to_core (const struct GNUNET_CONFIGURATION_Handle *c)
651 struct GNUNET_CADET_TunnelKeyExchangeMessage, 651 struct GNUNET_CADET_TunnelKeyExchangeMessage,
652 NULL), 652 NULL),
653 GNUNET_MQ_hd_var_size (encrypted, 653 GNUNET_MQ_hd_var_size (encrypted,
654 GNUNET_MESSAGE_TYPE_CONNECTION_ENCRYPTED, 654 GNUNET_MESSAGE_TYPE_CADET_TUNNEL_ENCRYPTED,
655 struct GNUNET_CADET_ConnectionEncryptedMessage, 655 struct GNUNET_CADET_TunnelEncryptedMessage,
656 NULL), 656 NULL),
657 GNUNET_MQ_handler_end () 657 GNUNET_MQ_handler_end ()
658 }; 658 };
@@ -735,7 +735,7 @@ get_priority (struct CadetPeerQueue *q)
735 } 735 }
736 736
737 /* Bulky payload has lower priority, control traffic has higher. */ 737 /* Bulky payload has lower priority, control traffic has higher. */
738 if (GNUNET_MESSAGE_TYPE_CONNECTION_ENCRYPTED == q->type) 738 if (GNUNET_MESSAGE_TYPE_CADET_TUNNEL_ENCRYPTED == q->type)
739 return low; 739 return low;
740 return high; 740 return high;
741} 741}
@@ -1059,8 +1059,8 @@ search_handler (void *cls, const struct CadetPeerPath *path)
1059static int 1059static int
1060is_connection_management (uint16_t type) 1060is_connection_management (uint16_t type)
1061{ 1061{
1062 return type == GNUNET_MESSAGE_TYPE_CADET_ENCRYPTED_HOP_BY_HOP_ACK || 1062 return type == GNUNET_MESSAGE_TYPE_CADET_CONNECTION_HOP_BY_HOP_ENCRYPTED_ACK ||
1063 type == GNUNET_MESSAGE_TYPE_CADET_CONNECTION_HOP_BY_HOP_POLL; 1063 type == GNUNET_MESSAGE_TYPE_CADET_TUNNEL_ENCRYPTED_POLL;
1064} 1064}
1065 1065
1066 1066