aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-03-28 15:59:34 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-03-28 15:59:34 +0000
commit4a77d5e8ecf53f7fb2f54545d7c4313b3bcd7c05 (patch)
tree0de6fd99952348f643f5f8ee68d9b74680419aa3 /src
parent91140caa33349036934b5b86238c0ec6265e0a13 (diff)
downloadgnunet-4a77d5e8ecf53f7fb2f54545d7c4313b3bcd7c05.tar.gz
gnunet-4a77d5e8ecf53f7fb2f54545d7c4313b3bcd7c05.zip
support for FRIEND_HELLO
Diffstat (limited to 'src')
-rw-r--r--src/peerinfo/gnunet-service-peerinfo.c1
-rw-r--r--src/testbed/gnunet-service-testbed_oc.c3
-rw-r--r--src/topology/gnunet-daemon-topology.c1
3 files changed, 4 insertions, 1 deletions
diff --git a/src/peerinfo/gnunet-service-peerinfo.c b/src/peerinfo/gnunet-service-peerinfo.c
index 68024a90a..f7a4b5536 100644
--- a/src/peerinfo/gnunet-service-peerinfo.c
+++ b/src/peerinfo/gnunet-service-peerinfo.c
@@ -769,6 +769,7 @@ run (void *cls, struct GNUNET_SERVER_Handle *server,
769 const struct GNUNET_CONFIGURATION_Handle *cfg) 769 const struct GNUNET_CONFIGURATION_Handle *cfg)
770{ 770{
771 static const struct GNUNET_SERVER_MessageHandler handlers[] = { 771 static const struct GNUNET_SERVER_MessageHandler handlers[] = {
772 {&handle_hello, NULL, GNUNET_MESSAGE_TYPE_FRIEND_HELLO, 0},
772 {&handle_hello, NULL, GNUNET_MESSAGE_TYPE_HELLO, 0}, 773 {&handle_hello, NULL, GNUNET_MESSAGE_TYPE_HELLO, 0},
773 {&handle_get, NULL, GNUNET_MESSAGE_TYPE_PEERINFO_GET, 774 {&handle_get, NULL, GNUNET_MESSAGE_TYPE_PEERINFO_GET,
774 sizeof (struct ListPeerMessage)}, 775 sizeof (struct ListPeerMessage)},
diff --git a/src/testbed/gnunet-service-testbed_oc.c b/src/testbed/gnunet-service-testbed_oc.c
index 7f7695cc2..bc4ab31c7 100644
--- a/src/testbed/gnunet-service-testbed_oc.c
+++ b/src/testbed/gnunet-service-testbed_oc.c
@@ -1514,7 +1514,8 @@ GST_handle_remote_overlay_connect (void *cls,
1514 } 1514 }
1515 msg = (const struct GNUNET_TESTBED_RemoteOverlayConnectMessage *) message; 1515 msg = (const struct GNUNET_TESTBED_RemoteOverlayConnectMessage *) message;
1516 if ((NULL == msg->hello) || 1516 if ((NULL == msg->hello) ||
1517 (GNUNET_MESSAGE_TYPE_HELLO != ntohs (msg->hello->type))) 1517 ((GNUNET_MESSAGE_TYPE_HELLO != ntohs (msg->hello->type)) &&
1518 (GNUNET_MESSAGE_TYPE_FRIEND_HELLO != ntohs (msg->hello->type))))
1518 { 1519 {
1519 GNUNET_break (0); 1520 GNUNET_break (0);
1520 GNUNET_SERVER_receive_done (client, GNUNET_SYSERR); 1521 GNUNET_SERVER_receive_done (client, GNUNET_SYSERR);
diff --git a/src/topology/gnunet-daemon-topology.c b/src/topology/gnunet-daemon-topology.c
index c36108823..cb43ee261 100644
--- a/src/topology/gnunet-daemon-topology.c
+++ b/src/topology/gnunet-daemon-topology.c
@@ -1274,6 +1274,7 @@ run (void *cls, char *const *args, const char *cfgfile,
1274{ 1274{
1275 static struct GNUNET_CORE_MessageHandler handlers[] = { 1275 static struct GNUNET_CORE_MessageHandler handlers[] = {
1276 {&handle_encrypted_hello, GNUNET_MESSAGE_TYPE_HELLO, 0}, 1276 {&handle_encrypted_hello, GNUNET_MESSAGE_TYPE_HELLO, 0},
1277 {&handle_encrypted_hello, GNUNET_MESSAGE_TYPE_FRIEND_HELLO, 0},
1277 {NULL, 0, 0} 1278 {NULL, 0, 0}
1278 }; 1279 };
1279 unsigned long long opt; 1280 unsigned long long opt;