aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2011-06-29 08:49:09 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2011-06-29 08:49:09 +0000
commitefa03f35a02e6245adfcc6f59e6287a78204a447 (patch)
tree05c57b6cd5a46b492bde3d129fcb33ec71accb65
parentecfbbfc341c5c49d23b468f84efa1d7fa5706261 (diff)
downloadgnunet-efa03f35a02e6245adfcc6f59e6287a78204a447.tar.gz
gnunet-efa03f35a02e6245adfcc6f59e6287a78204a447.zip
getting plugins to work again
-rw-r--r--src/transport/plugin_transport_http.c25
-rw-r--r--src/transport/plugin_transport_wlan.c5
2 files changed, 14 insertions, 16 deletions
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,
835 { 835 {
836 GNUNET_CONTAINER_DLL_insert(plugin->ipv4_addr_head, 836 GNUNET_CONTAINER_DLL_insert(plugin->ipv4_addr_head,
837 plugin->ipv4_addr_tail,t4); 837 plugin->ipv4_addr_tail,t4);
838 plugin->env->notify_address(plugin->env->cls, 838 plugin->env->notify_address(plugin->env->cls,
839 PROTOCOL_PREFIX, 839 GNUNET_YES,
840 t4, sizeof (struct IPv4HttpAddress), 840 t4, sizeof (struct IPv4HttpAddress));
841 GNUNET_TIME_UNIT_FOREVER_REL);
842 return GNUNET_OK; 841 return GNUNET_OK;
843 } 842 }
844 GNUNET_free (t4); 843 GNUNET_free (t4);
@@ -849,10 +848,9 @@ process_interfaces (void *cls,
849 GNUNET_CONTAINER_DLL_insert (plugin->ipv4_addr_head, 848 GNUNET_CONTAINER_DLL_insert (plugin->ipv4_addr_head,
850 plugin->ipv4_addr_tail, 849 plugin->ipv4_addr_tail,
851 t4); 850 t4);
852 plugin->env->notify_address (plugin->env->cls, 851 plugin->env->notify_address(plugin->env->cls,
853 PROTOCOL_PREFIX, 852 GNUNET_YES,
854 t4, sizeof (struct IPv4HttpAddress), 853 t4, sizeof (struct IPv4HttpAddress));
855 GNUNET_TIME_UNIT_FOREVER_REL);
856 return GNUNET_OK; 854 return GNUNET_OK;
857 } 855 }
858 } 856 }
@@ -874,9 +872,8 @@ process_interfaces (void *cls,
874 sizeof (struct in6_addr)); 872 sizeof (struct in6_addr));
875 t6->u6_port = htons (plugin->port_inbound); 873 t6->u6_port = htons (plugin->port_inbound);
876 plugin->env->notify_address(plugin->env->cls, 874 plugin->env->notify_address(plugin->env->cls,
877 PROTOCOL_PREFIX, t6, 875 GNUNET_YES,
878 sizeof (struct IPv6HttpAddress), 876 t6, sizeof (struct IPv6HttpAddress));
879 GNUNET_TIME_UNIT_FOREVER_REL);
880 GNUNET_CONTAINER_DLL_insert(plugin->ipv6_addr_head, 877 GNUNET_CONTAINER_DLL_insert(plugin->ipv6_addr_head,
881 plugin->ipv6_addr_tail, 878 plugin->ipv6_addr_tail,
882 t6); 879 t6);
@@ -890,10 +887,10 @@ process_interfaces (void *cls,
890 sizeof (struct in6_addr)); 887 sizeof (struct in6_addr));
891 t6->u6_port = htons (plugin->port_inbound); 888 t6->u6_port = htons (plugin->port_inbound);
892 GNUNET_CONTAINER_DLL_insert(plugin->ipv6_addr_head,plugin->ipv6_addr_tail,t6); 889 GNUNET_CONTAINER_DLL_insert(plugin->ipv6_addr_head,plugin->ipv6_addr_tail,t6);
890
893 plugin->env->notify_address(plugin->env->cls, 891 plugin->env->notify_address(plugin->env->cls,
894 PROTOCOL_PREFIX, 892 GNUNET_YES,
895 t6, sizeof (struct IPv6HttpAddress), 893 t6, sizeof (struct IPv6HttpAddress));
896 GNUNET_TIME_UNIT_FOREVER_REL);
897 } 894 }
898 return GNUNET_OK; 895 return GNUNET_OK;
899} 896}
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,
3001 wlan_plugin_address_to_string(cls, &plugin->mac_address, 3001 wlan_plugin_address_to_string(cls, &plugin->mac_address,
3002 sizeof(struct MacAddress))); 3002 sizeof(struct MacAddress)));
3003#endif 3003#endif
3004 plugin->env->notify_address(plugin->env->cls, "wlan", &plugin->mac_address, 3004 plugin->env->notify_address(plugin->env->cls,
3005 sizeof(struct MacAddress), GNUNET_TIME_UNIT_FOREVER_REL); 3005 GNUNET_YES,
3006 &plugin->mac_address, sizeof(struct MacAddress));
3006 break; 3007 break;
3007 default: 3008 default:
3008 GNUNET_break (0); 3009 GNUNET_break (0);