[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r14948 - gnunet/src/vpn
From: |
gnunet |
Subject: |
[GNUnet-SVN] r14948 - gnunet/src/vpn |
Date: |
Sun, 10 Apr 2011 23:36:19 +0200 |
Author: toelke
Date: 2011-04-10 23:36:19 +0200 (Sun, 10 Apr 2011)
New Revision: 14948
Modified:
gnunet/src/vpn/gnunet-daemon-exit.c
gnunet/src/vpn/gnunet-daemon-vpn.c
Log:
add TODO
Modified: gnunet/src/vpn/gnunet-daemon-exit.c
===================================================================
--- gnunet/src/vpn/gnunet-daemon-exit.c 2011-04-10 13:19:37 UTC (rev 14947)
+++ gnunet/src/vpn/gnunet-daemon-exit.c 2011-04-10 21:36:19 UTC (rev 14948)
@@ -200,6 +200,7 @@
/* 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 @@
/* 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 @@
/* 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 @@
/* 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,
Modified: gnunet/src/vpn/gnunet-daemon-vpn.c
===================================================================
--- gnunet/src/vpn/gnunet-daemon-vpn.c 2011-04-10 13:19:37 UTC (rev 14947)
+++ gnunet/src/vpn/gnunet-daemon-vpn.c 2011-04-10 21:36:19 UTC (rev 14948)
@@ -255,6 +255,7 @@
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 @@
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 @@
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 @@
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);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r14948 - gnunet/src/vpn,
gnunet <=