aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_validation.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-12-12 16:17:10 +0000
committerChristian Grothoff <christian@grothoff.org>2013-12-12 16:17:10 +0000
commitb10f26ae8caab6299b94f00a319a6424be57a386 (patch)
tree5764c07a2a61a8e2fb8f0a94c885942b5fb028a5 /src/transport/gnunet-service-transport_validation.h
parent54811540b75f59ca8dd54f96d6fe9f8f3743011d (diff)
downloadgnunet-b10f26ae8caab6299b94f00a319a6424be57a386.tar.gz
gnunet-b10f26ae8caab6299b94f00a319a6424be57a386.zip
-be stricter during handshake, close sessions with broken interactions aggressively
Diffstat (limited to 'src/transport/gnunet-service-transport_validation.h')
-rw-r--r--src/transport/gnunet-service-transport_validation.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/transport/gnunet-service-transport_validation.h b/src/transport/gnunet-service-transport_validation.h
index 3408f50bb..c37484f13 100644
--- a/src/transport/gnunet-service-transport_validation.h
+++ b/src/transport/gnunet-service-transport_validation.h
@@ -89,8 +89,9 @@ GST_validation_get_address_latency (const struct GNUNET_PeerIdentity *sender,
89 * @param hdr the PING 89 * @param hdr the PING
90 * @param sender_address address of the sender, NULL if we did not initiate 90 * @param sender_address address of the sender, NULL if we did not initiate
91 * @param session session we got the PING from 91 * @param session session we got the PING from
92 * @return #GNUNET_OK if the message was fine, #GNUNET_SYSERR on serious error
92 */ 93 */
93void 94int
94GST_validation_handle_ping (const struct GNUNET_PeerIdentity *sender, 95GST_validation_handle_ping (const struct GNUNET_PeerIdentity *sender,
95 const struct GNUNET_MessageHeader *hdr, 96 const struct GNUNET_MessageHeader *hdr,
96 const struct GNUNET_HELLO_Address *sender_address, 97 const struct GNUNET_HELLO_Address *sender_address,
@@ -103,8 +104,9 @@ GST_validation_handle_ping (const struct GNUNET_PeerIdentity *sender,
103 * 104 *
104 * @param sender peer sending the PONG 105 * @param sender peer sending the PONG
105 * @param hdr the PONG 106 * @param hdr the PONG
107 * @return #GNUNET_OK if the message was fine, #GNUNET_SYSERR on serious error
106 */ 108 */
107void 109int
108GST_validation_handle_pong (const struct GNUNET_PeerIdentity *sender, 110GST_validation_handle_pong (const struct GNUNET_PeerIdentity *sender,
109 const struct GNUNET_MessageHeader *hdr); 111 const struct GNUNET_MessageHeader *hdr);
110 112
@@ -114,8 +116,9 @@ GST_validation_handle_pong (const struct GNUNET_PeerIdentity *sender,
114 * validation. 116 * validation.
115 * 117 *
116 * @param hello the HELLO we received 118 * @param hello the HELLO we received
119 * @return #GNUNET_OK if the message was fine, #GNUNET_SYSERR on serious error
117 */ 120 */
118void 121int
119GST_validation_handle_hello (const struct GNUNET_MessageHeader *hello); 122GST_validation_handle_hello (const struct GNUNET_MessageHeader *hello);
120 123
121 124