aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http.c
diff options
context:
space:
mode:
authorLRN <lrn1986@gmail.com>2012-08-25 14:19:21 +0000
committerLRN <lrn1986@gmail.com>2012-08-25 14:19:21 +0000
commit5f6c6235e64474a115281d397850a6299d351280 (patch)
tree58302b54467dc7b78a4fa95778220642dd6e23a0 /src/transport/plugin_transport_http.c
parent5bec5a8d66565e3f42aa5b4fc98ab0d87c47e528 (diff)
downloadgnunet-5f6c6235e64474a115281d397850a6299d351280.tar.gz
gnunet-5f6c6235e64474a115281d397850a6299d351280.zip
changes to address notification strike back
Diffstat (limited to 'src/transport/plugin_transport_http.c')
-rw-r--r--src/transport/plugin_transport_http.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/transport/plugin_transport_http.c b/src/transport/plugin_transport_http.c
index 7f78f0e4f..24d37cc34 100644
--- a/src/transport/plugin_transport_http.c
+++ b/src/transport/plugin_transport_http.c
@@ -734,7 +734,7 @@ nat_add_address (void *cls, int add_remove, const struct sockaddr *addr,
734 GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR, plugin->name, 734 GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR, plugin->name,
735 "Notifying transport to add address `%s'\n", w->addr->addr); 735 "Notifying transport to add address `%s'\n", w->addr->addr);
736 736
737 plugin->env->notify_address (plugin->env->cls, add_remove, w->addr, haddrlen); 737 plugin->env->notify_address (plugin->env->cls, add_remove, w->addr, haddrlen, "http");
738} 738}
739 739
740 740
@@ -757,7 +757,7 @@ nat_remove_address (void *cls, int add_remove, const struct sockaddr *addr,
757 757
758 GNUNET_CONTAINER_DLL_remove (plugin->addr_head, plugin->addr_tail, w); 758 GNUNET_CONTAINER_DLL_remove (plugin->addr_head, plugin->addr_tail, w);
759 plugin->env->notify_address (plugin->env->cls, add_remove, w->addr, 759 plugin->env->notify_address (plugin->env->cls, add_remove, w->addr,
760 sizeof (struct HttpAddress) + ntohl (w->addr->addr_len)); 760 sizeof (struct HttpAddress) + ntohl (w->addr->addr_len), "http");
761 GNUNET_free (w->addr); 761 GNUNET_free (w->addr);
762 GNUNET_free (w); 762 GNUNET_free (w);
763} 763}
@@ -1093,7 +1093,7 @@ notify_external_hostname (void *cls, const struct GNUNET_SCHEDULER_TaskContext *
1093 "Notifying transport about external hostname address `%s'\n", addr); 1093 "Notifying transport about external hostname address `%s'\n", addr);
1094 1094
1095 GNUNET_free (addr); 1095 GNUNET_free (addr);
1096 plugin->env->notify_address (plugin->env->cls, GNUNET_YES, eaddr, eaddr_len); 1096 plugin->env->notify_address (plugin->env->cls, GNUNET_YES, eaddr, eaddr_len, "http");
1097 plugin->ext_addr = eaddr; 1097 plugin->ext_addr = eaddr;
1098 plugin->ext_addr_len = eaddr_len; 1098 plugin->ext_addr_len = eaddr_len;
1099} 1099}
@@ -1447,7 +1447,7 @@ LIBGNUNET_PLUGIN_TRANSPORT_DONE (void *cls)
1447 1447
1448 if (NULL != plugin->ext_addr) 1448 if (NULL != plugin->ext_addr)
1449 { 1449 {
1450 plugin->env->notify_address (plugin->env->cls, GNUNET_NO, plugin->ext_addr, plugin->ext_addr_len); 1450 plugin->env->notify_address (plugin->env->cls, GNUNET_NO, plugin->ext_addr, plugin->ext_addr_len, "http");
1451 GNUNET_free (plugin->ext_addr); 1451 GNUNET_free (plugin->ext_addr);
1452 } 1452 }
1453 1453