add TODO
authorPhilipp Tölke <toelke@in.tum.de>
Sun, 10 Apr 2011 21:36:19 +0000 (21:36 +0000)
committerPhilipp Tölke <toelke@in.tum.de>
Sun, 10 Apr 2011 21:36:19 +0000 (21:36 +0000)
src/vpn/gnunet-daemon-exit.c
src/vpn/gnunet-daemon-vpn.c

index b71105b40b712c2472e7ec550b9cb473863ceb87..038904f115a3d6e16d273f5688000b038a37a437 100644 (file)
@@ -200,6 +200,7 @@ udp_from_helper (struct udp_pkt *udp, unsigned char *dadr, size_t addrlen,
   /* FIXME better hashing */
   GNUNET_HashCode hash;
   GNUNET_CRYPTO_hash (&u_i, sizeof (struct redirect_info), &hash);
+  /* FIXME: update costs in heap */
   struct redirect_state *state =
     GNUNET_CONTAINER_multihashmap_get (udp_connections, &hash);
 
@@ -278,6 +279,7 @@ tcp_from_helper (struct tcp_pkt *tcp, unsigned char *dadr, size_t addrlen,
   /* get tunnel and service-descriptor from this */
   GNUNET_HashCode hash;
   GNUNET_CRYPTO_hash (&u_i, sizeof (struct redirect_info), &hash);
+  /* FIXME: update costs in heap */
   struct redirect_state *state =
     GNUNET_CONTAINER_multihashmap_get (tcp_connections, &hash);
 
@@ -832,6 +834,7 @@ receive_tcp_service (void *cls,
   /* FIXME better hashing */
   GNUNET_CRYPTO_hash (&state->redirect_info, sizeof (struct redirect_info), &hash);
 
+  /* FIXME save this to heap, too */
   if (GNUNET_NO ==
       GNUNET_CONTAINER_multihashmap_contains (tcp_connections, &hash))
     GNUNET_CONTAINER_multihashmap_put (tcp_connections, &hash, state,
@@ -923,6 +926,7 @@ receive_udp_service (void *cls,
   /* FIXME better hashing */
   GNUNET_CRYPTO_hash (&state->redirect_info, sizeof (struct redirect_info), &hash);
 
+  /* FIXME save this to heap, too */
   if (GNUNET_NO ==
       GNUNET_CONTAINER_multihashmap_contains (udp_connections, &hash))
     GNUNET_CONTAINER_multihashmap_put (udp_connections, &hash, state,
index 2d7060d8120a9a5373e3da104c89cd6e69021538..ba1242d05710cb46e616f346ca62c4922fd36375 100644 (file)
@@ -255,6 +255,7 @@ process_answer(void* cls, const struct GNUNET_SCHEDULER_TaskContext* tc) {
 
         memset(value->additional_ports, 0, 8192);
 
+        /* FIXME save this to heap, too */
         if (GNUNET_NO ==
             GNUNET_CONTAINER_multihashmap_contains (hashmap, &key))
           GNUNET_CONTAINER_multihashmap_put (hashmap, &key, value,
@@ -290,6 +291,7 @@ process_answer(void* cls, const struct GNUNET_SCHEDULER_TaskContext* tc) {
              k[i] += 16*(c2 - 87);
          }
 
+        /* FIXME: update costs in heap */
        struct map_entry* map_entry = GNUNET_CONTAINER_multihashmap_get(hashmap, &key);
        uint16_t offset = ntohs(pkt->addroffset);
 
@@ -450,6 +452,7 @@ receive_udp_back (void *cls, struct GNUNET_MESH_Tunnel* tunnel,
   GNUNET_HashCode* key = address_mapping_exists(pkt6->ip6_hdr.sadr);
   GNUNET_assert (key != NULL);
 
+  /* FIXME: update costs in heap */
   struct map_entry *me = GNUNET_CONTAINER_multihashmap_get(hashmap, key);
 
   GNUNET_free(key);
@@ -523,6 +526,7 @@ receive_tcp_back (void *cls, struct GNUNET_MESH_Tunnel* tunnel,
   GNUNET_HashCode* key = address_mapping_exists(pkt6->ip6_hdr.sadr);
   GNUNET_assert (key != NULL);
 
+  /* FIXME: update costs in heap */
   struct map_entry *me = GNUNET_CONTAINER_multihashmap_get(hashmap, key);
 
   GNUNET_free(key);