aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/include/gnunet_transport_plugin.h4
-rw-r--r--src/transport/plugin_transport_http.c8
2 files changed, 7 insertions, 5 deletions
diff --git a/src/include/gnunet_transport_plugin.h b/src/include/gnunet_transport_plugin.h
index 6a5b0e142..16c9c0165 100644
--- a/src/include/gnunet_transport_plugin.h
+++ b/src/include/gnunet_transport_plugin.h
@@ -155,10 +155,12 @@ typedef struct GNUNET_ATS_Information
155 * @param addr one of the addresses of the host 155 * @param addr one of the addresses of the host
156 * the specific address format depends on the transport 156 * the specific address format depends on the transport
157 * @param addrlen length of the address 157 * @param addrlen length of the address
158 * @pararm pluginname name of the plugin
158 */ 159 */
159typedef void (*GNUNET_TRANSPORT_AddressNotification) (void *cls, int add_remove, 160typedef void (*GNUNET_TRANSPORT_AddressNotification) (void *cls, int add_remove,
160 const void *addr, 161 const void *addr,
161 size_t addrlen); 162 size_t addrlen,
163 const char *pluginname);
162 164
163 165
164/** 166/**
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