[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r15787 - gnunet/src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r15787 - gnunet/src/transport |
Date: |
Wed, 29 Jun 2011 10:49:09 +0200 |
Author: wachs
Date: 2011-06-29 10:49:09 +0200 (Wed, 29 Jun 2011)
New Revision: 15787
Modified:
gnunet/src/transport/plugin_transport_http.c
gnunet/src/transport/plugin_transport_wlan.c
Log:
getting plugins to work again
Modified: gnunet/src/transport/plugin_transport_http.c
===================================================================
--- gnunet/src/transport/plugin_transport_http.c 2011-06-29 08:24:25 UTC
(rev 15786)
+++ gnunet/src/transport/plugin_transport_http.c 2011-06-29 08:49:09 UTC
(rev 15787)
@@ -835,10 +835,9 @@
{
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 @@
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 @@
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 @@
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;
}
Modified: gnunet/src/transport/plugin_transport_wlan.c
===================================================================
--- gnunet/src/transport/plugin_transport_wlan.c 2011-06-29 08:24:25 UTC
(rev 15786)
+++ gnunet/src/transport/plugin_transport_wlan.c 2011-06-29 08:49:09 UTC
(rev 15787)
@@ -3001,8 +3001,9 @@
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);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r15787 - gnunet/src/transport,
gnunet <=