aboutsummaryrefslogtreecommitdiff
path: root/src/transport
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-03-28 15:14:38 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-03-28 15:14:38 +0000
commitb3883971cd31d198dbd768fffb15960dff0352a6 (patch)
tree1803032b911774f57158013eedfc26a3c0fb5462 /src/transport
parent1fe395444d868f4fd66d44da83cb61a69acc6b66 (diff)
downloadgnunet-b3883971cd31d198dbd768fffb15960dff0352a6.tar.gz
gnunet-b3883971cd31d198dbd768fffb15960dff0352a6.zip
new friend only HELLO type GNUNET_MESSAGE_TYPE_FRIEND_HELLO
Diffstat (limited to 'src/transport')
-rw-r--r--src/transport/gnunet-service-transport_hello.c4
-rw-r--r--src/transport/gnunet-service-transport_validation.c4
-rw-r--r--src/transport/test_plugin_transport.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/transport/gnunet-service-transport_hello.c b/src/transport/gnunet-service-transport_hello.c
index c04d2e1dd..78968ae77 100644
--- a/src/transport/gnunet-service-transport_hello.c
+++ b/src/transport/gnunet-service-transport_hello.c
@@ -167,7 +167,7 @@ refresh_hello_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
167 gc.expiration = GNUNET_TIME_relative_to_absolute (hello_expiration); 167 gc.expiration = GNUNET_TIME_relative_to_absolute (hello_expiration);
168 168
169 GNUNET_free (our_hello); 169 GNUNET_free (our_hello);
170 our_hello = GNUNET_HELLO_create (&GST_my_public_key, &address_generator, &gc); 170 our_hello = GNUNET_HELLO_create (&GST_my_public_key, &address_generator, &gc, GNUNET_NO);
171 GNUNET_assert (NULL != our_hello); 171 GNUNET_assert (NULL != our_hello);
172 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG | GNUNET_ERROR_TYPE_BULK, 172 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG | GNUNET_ERROR_TYPE_BULK,
173 "Refreshed my `%s', new size is %d\n", "HELLO", 173 "Refreshed my `%s', new size is %d\n", "HELLO",
@@ -208,7 +208,7 @@ GST_hello_start (GST_HelloCallback cb, void *cb_cls)
208{ 208{
209 hello_cb = cb; 209 hello_cb = cb;
210 hello_cb_cls = cb_cls; 210 hello_cb_cls = cb_cls;
211 our_hello = GNUNET_HELLO_create (&GST_my_public_key, NULL, NULL); 211 our_hello = GNUNET_HELLO_create (&GST_my_public_key, NULL, NULL, GNUNET_NO);
212 GNUNET_assert (NULL != our_hello); 212 GNUNET_assert (NULL != our_hello);
213 refresh_hello (); 213 refresh_hello ();
214} 214}
diff --git a/src/transport/gnunet-service-transport_validation.c b/src/transport/gnunet-service-transport_validation.c
index 4bb782bf4..f5c57d864 100644
--- a/src/transport/gnunet-service-transport_validation.c
+++ b/src/transport/gnunet-service-transport_validation.c
@@ -1264,7 +1264,7 @@ GST_validation_handle_pong (const struct GNUNET_PeerIdentity *sender,
1264 1264
1265 /* build HELLO to store in PEERINFO */ 1265 /* build HELLO to store in PEERINFO */
1266 ve->copied = GNUNET_NO; 1266 ve->copied = GNUNET_NO;
1267 hello = GNUNET_HELLO_create (&ve->public_key, &add_valid_peer_address, ve); 1267 hello = GNUNET_HELLO_create (&ve->public_key, &add_valid_peer_address, ve, GNUNET_NO);
1268 GNUNET_PEERINFO_add_peer (GST_peerinfo, hello, NULL, NULL); 1268 GNUNET_PEERINFO_add_peer (GST_peerinfo, hello, NULL, NULL);
1269 GNUNET_free (hello); 1269 GNUNET_free (hello);
1270} 1270}
@@ -1295,7 +1295,7 @@ GST_validation_handle_hello (const struct GNUNET_MessageHeader *hello)
1295 memcmp (&GST_my_identity, &vac.pid, sizeof (struct GNUNET_PeerIdentity))) 1295 memcmp (&GST_my_identity, &vac.pid, sizeof (struct GNUNET_PeerIdentity)))
1296 return; 1296 return;
1297 /* Add peer identity without addresses to peerinfo service */ 1297 /* Add peer identity without addresses to peerinfo service */
1298 h = GNUNET_HELLO_create (&vac.public_key, NULL, NULL); 1298 h = GNUNET_HELLO_create (&vac.public_key, NULL, NULL, GNUNET_NO);
1299 GNUNET_PEERINFO_add_peer (GST_peerinfo, h, NULL, NULL); 1299 GNUNET_PEERINFO_add_peer (GST_peerinfo, h, NULL, NULL);
1300 1300
1301 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1301 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
diff --git a/src/transport/test_plugin_transport.c b/src/transport/test_plugin_transport.c
index 583e78467..58fd07c78 100644
--- a/src/transport/test_plugin_transport.c
+++ b/src/transport/test_plugin_transport.c
@@ -601,7 +601,7 @@ run (void *cls, char *const *args, const char *cfgfile,
601 &my_identity.hashPubKey); 601 &my_identity.hashPubKey);
602 602
603 603
604 hello = GNUNET_HELLO_create(&my_public_key, NULL, NULL); 604 hello = GNUNET_HELLO_create(&my_public_key, NULL, NULL, GNUNET_NO);
605 605
606 /* load plugins... */ 606 /* load plugins... */
607 setup_plugin_environment (); 607 setup_plugin_environment ();