diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-03-28 15:43:23 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-03-28 15:43:23 +0000 |
commit | 91140caa33349036934b5b86238c0ec6265e0a13 (patch) | |
tree | 7340da5a8452a12588be643e59458f2f0a6891e1 /src/transport/transport_api.c | |
parent | a55b2de0863937cfe9c0fcbf41882b81f4c82c9c (diff) | |
download | gnunet-91140caa33349036934b5b86238c0ec6265e0a13.tar.gz gnunet-91140caa33349036934b5b86238c0ec6265e0a13.zip |
support for FRIEND_HELLO messages
Diffstat (limited to 'src/transport/transport_api.c')
-rw-r--r-- | src/transport/transport_api.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/transport/transport_api.c b/src/transport/transport_api.c index 8dc4c7a42..d8fb7d520 100644 --- a/src/transport/transport_api.c +++ b/src/transport/transport_api.c | |||
@@ -497,6 +497,7 @@ demultiplexer (void *cls, const struct GNUNET_MessageHeader *msg) | |||
497 | switch (ntohs (msg->type)) | 497 | switch (ntohs (msg->type)) |
498 | { | 498 | { |
499 | case GNUNET_MESSAGE_TYPE_HELLO: | 499 | case GNUNET_MESSAGE_TYPE_HELLO: |
500 | case GNUNET_MESSAGE_TYPE_FRIEND_HELLO: | ||
500 | if (GNUNET_OK != | 501 | if (GNUNET_OK != |
501 | GNUNET_HELLO_get_id ((const struct GNUNET_HELLO_Message *) msg, &me)) | 502 | GNUNET_HELLO_get_id ((const struct GNUNET_HELLO_Message *) msg, &me)) |
502 | { | 503 | { |
@@ -1292,7 +1293,8 @@ GNUNET_TRANSPORT_offer_hello (struct GNUNET_TRANSPORT_Handle *handle, | |||
1292 | if (NULL == handle->client) | 1293 | if (NULL == handle->client) |
1293 | return NULL; | 1294 | return NULL; |
1294 | 1295 | ||
1295 | GNUNET_break (ntohs (hello->type) == GNUNET_MESSAGE_TYPE_HELLO); | 1296 | GNUNET_break ((ntohs (hello->type) == GNUNET_MESSAGE_TYPE_HELLO) || |
1297 | (ntohs (hello->type) == GNUNET_MESSAGE_TYPE_FRIEND_HELLO)); | ||
1296 | size = ntohs (hello->size); | 1298 | size = ntohs (hello->size); |
1297 | GNUNET_break (size >= sizeof (struct GNUNET_MessageHeader)); | 1299 | GNUNET_break (size >= sizeof (struct GNUNET_MessageHeader)); |
1298 | if (GNUNET_OK != | 1300 | if (GNUNET_OK != |