From: Matthias Wachs Date: Wed, 29 Jun 2011 08:49:09 +0000 (+0000) Subject: getting plugins to work again X-Git-Tag: initial-import-from-subversion-38251~18021 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=efa03f35a02e6245adfcc6f59e6287a78204a447;p=oweals%2Fgnunet.git getting plugins to work again --- diff --git a/src/transport/plugin_transport_http.c b/src/transport/plugin_transport_http.c index 1fdfcdbda..a0eecb168 100644 --- a/src/transport/plugin_transport_http.c +++ b/src/transport/plugin_transport_http.c @@ -835,10 +835,9 @@ process_interfaces (void *cls, { GNUNET_CONTAINER_DLL_insert(plugin->ipv4_addr_head, plugin->ipv4_addr_tail,t4); - plugin->env->notify_address(plugin->env->cls, - PROTOCOL_PREFIX, - t4, sizeof (struct IPv4HttpAddress), - GNUNET_TIME_UNIT_FOREVER_REL); + plugin->env->notify_address(plugin->env->cls, + GNUNET_YES, + t4, sizeof (struct IPv4HttpAddress)); return GNUNET_OK; } GNUNET_free (t4); @@ -849,10 +848,9 @@ process_interfaces (void *cls, GNUNET_CONTAINER_DLL_insert (plugin->ipv4_addr_head, plugin->ipv4_addr_tail, t4); - plugin->env->notify_address (plugin->env->cls, - PROTOCOL_PREFIX, - t4, sizeof (struct IPv4HttpAddress), - GNUNET_TIME_UNIT_FOREVER_REL); + plugin->env->notify_address(plugin->env->cls, + GNUNET_YES, + t4, sizeof (struct IPv4HttpAddress)); return GNUNET_OK; } } @@ -874,9 +872,8 @@ process_interfaces (void *cls, sizeof (struct in6_addr)); t6->u6_port = htons (plugin->port_inbound); plugin->env->notify_address(plugin->env->cls, - PROTOCOL_PREFIX, t6, - sizeof (struct IPv6HttpAddress), - GNUNET_TIME_UNIT_FOREVER_REL); + GNUNET_YES, + t6, sizeof (struct IPv6HttpAddress)); GNUNET_CONTAINER_DLL_insert(plugin->ipv6_addr_head, plugin->ipv6_addr_tail, t6); @@ -890,10 +887,10 @@ process_interfaces (void *cls, sizeof (struct in6_addr)); t6->u6_port = htons (plugin->port_inbound); GNUNET_CONTAINER_DLL_insert(plugin->ipv6_addr_head,plugin->ipv6_addr_tail,t6); + plugin->env->notify_address(plugin->env->cls, - PROTOCOL_PREFIX, - t6, sizeof (struct IPv6HttpAddress), - GNUNET_TIME_UNIT_FOREVER_REL); + GNUNET_YES, + t6, sizeof (struct IPv6HttpAddress)); } return GNUNET_OK; } diff --git a/src/transport/plugin_transport_wlan.c b/src/transport/plugin_transport_wlan.c index 9d22591ef..90a807fbe 100644 --- a/src/transport/plugin_transport_wlan.c +++ b/src/transport/plugin_transport_wlan.c @@ -3001,8 +3001,9 @@ wlan_process_helper(void *cls, void *client, wlan_plugin_address_to_string(cls, &plugin->mac_address, sizeof(struct MacAddress))); #endif - plugin->env->notify_address(plugin->env->cls, "wlan", &plugin->mac_address, - sizeof(struct MacAddress), GNUNET_TIME_UNIT_FOREVER_REL); + plugin->env->notify_address(plugin->env->cls, + GNUNET_YES, + &plugin->mac_address, sizeof(struct MacAddress)); break; default: GNUNET_break (0);