diff options
author | Philipp Tölke <toelke@in.tum.de> | 2011-04-10 21:36:19 +0000 |
---|---|---|
committer | Philipp Tölke <toelke@in.tum.de> | 2011-04-10 21:36:19 +0000 |
commit | 5ed2894503fb9fcd11ada7fc5f1bef77639d1b3e (patch) | |
tree | 7c475b0f746875eb00fd8a82d59d0cef9942beab /src/vpn | |
parent | ddc1e5711bf25f815f0c2a8556730b46e3a4cc1d (diff) | |
download | gnunet-5ed2894503fb9fcd11ada7fc5f1bef77639d1b3e.tar.gz gnunet-5ed2894503fb9fcd11ada7fc5f1bef77639d1b3e.zip |
add TODO
Diffstat (limited to 'src/vpn')
-rw-r--r-- | src/vpn/gnunet-daemon-exit.c | 4 | ||||
-rw-r--r-- | src/vpn/gnunet-daemon-vpn.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/vpn/gnunet-daemon-exit.c b/src/vpn/gnunet-daemon-exit.c index b71105b40..038904f11 100644 --- a/src/vpn/gnunet-daemon-exit.c +++ b/src/vpn/gnunet-daemon-exit.c | |||
@@ -200,6 +200,7 @@ udp_from_helper (struct udp_pkt *udp, unsigned char *dadr, size_t addrlen, | |||
200 | /* FIXME better hashing */ | 200 | /* FIXME better hashing */ |
201 | GNUNET_HashCode hash; | 201 | GNUNET_HashCode hash; |
202 | GNUNET_CRYPTO_hash (&u_i, sizeof (struct redirect_info), &hash); | 202 | GNUNET_CRYPTO_hash (&u_i, sizeof (struct redirect_info), &hash); |
203 | /* FIXME: update costs in heap */ | ||
203 | struct redirect_state *state = | 204 | struct redirect_state *state = |
204 | GNUNET_CONTAINER_multihashmap_get (udp_connections, &hash); | 205 | GNUNET_CONTAINER_multihashmap_get (udp_connections, &hash); |
205 | 206 | ||
@@ -278,6 +279,7 @@ tcp_from_helper (struct tcp_pkt *tcp, unsigned char *dadr, size_t addrlen, | |||
278 | /* get tunnel and service-descriptor from this */ | 279 | /* get tunnel and service-descriptor from this */ |
279 | GNUNET_HashCode hash; | 280 | GNUNET_HashCode hash; |
280 | GNUNET_CRYPTO_hash (&u_i, sizeof (struct redirect_info), &hash); | 281 | GNUNET_CRYPTO_hash (&u_i, sizeof (struct redirect_info), &hash); |
282 | /* FIXME: update costs in heap */ | ||
281 | struct redirect_state *state = | 283 | struct redirect_state *state = |
282 | GNUNET_CONTAINER_multihashmap_get (tcp_connections, &hash); | 284 | GNUNET_CONTAINER_multihashmap_get (tcp_connections, &hash); |
283 | 285 | ||
@@ -832,6 +834,7 @@ receive_tcp_service (void *cls, | |||
832 | /* FIXME better hashing */ | 834 | /* FIXME better hashing */ |
833 | GNUNET_CRYPTO_hash (&state->redirect_info, sizeof (struct redirect_info), &hash); | 835 | GNUNET_CRYPTO_hash (&state->redirect_info, sizeof (struct redirect_info), &hash); |
834 | 836 | ||
837 | /* FIXME save this to heap, too */ | ||
835 | if (GNUNET_NO == | 838 | if (GNUNET_NO == |
836 | GNUNET_CONTAINER_multihashmap_contains (tcp_connections, &hash)) | 839 | GNUNET_CONTAINER_multihashmap_contains (tcp_connections, &hash)) |
837 | GNUNET_CONTAINER_multihashmap_put (tcp_connections, &hash, state, | 840 | GNUNET_CONTAINER_multihashmap_put (tcp_connections, &hash, state, |
@@ -923,6 +926,7 @@ receive_udp_service (void *cls, | |||
923 | /* FIXME better hashing */ | 926 | /* FIXME better hashing */ |
924 | GNUNET_CRYPTO_hash (&state->redirect_info, sizeof (struct redirect_info), &hash); | 927 | GNUNET_CRYPTO_hash (&state->redirect_info, sizeof (struct redirect_info), &hash); |
925 | 928 | ||
929 | /* FIXME save this to heap, too */ | ||
926 | if (GNUNET_NO == | 930 | if (GNUNET_NO == |
927 | GNUNET_CONTAINER_multihashmap_contains (udp_connections, &hash)) | 931 | GNUNET_CONTAINER_multihashmap_contains (udp_connections, &hash)) |
928 | GNUNET_CONTAINER_multihashmap_put (udp_connections, &hash, state, | 932 | GNUNET_CONTAINER_multihashmap_put (udp_connections, &hash, state, |
diff --git a/src/vpn/gnunet-daemon-vpn.c b/src/vpn/gnunet-daemon-vpn.c index 2d7060d81..ba1242d05 100644 --- a/src/vpn/gnunet-daemon-vpn.c +++ b/src/vpn/gnunet-daemon-vpn.c | |||
@@ -255,6 +255,7 @@ process_answer(void* cls, const struct GNUNET_SCHEDULER_TaskContext* tc) { | |||
255 | 255 | ||
256 | memset(value->additional_ports, 0, 8192); | 256 | memset(value->additional_ports, 0, 8192); |
257 | 257 | ||
258 | /* FIXME save this to heap, too */ | ||
258 | if (GNUNET_NO == | 259 | if (GNUNET_NO == |
259 | GNUNET_CONTAINER_multihashmap_contains (hashmap, &key)) | 260 | GNUNET_CONTAINER_multihashmap_contains (hashmap, &key)) |
260 | GNUNET_CONTAINER_multihashmap_put (hashmap, &key, value, | 261 | GNUNET_CONTAINER_multihashmap_put (hashmap, &key, value, |
@@ -290,6 +291,7 @@ process_answer(void* cls, const struct GNUNET_SCHEDULER_TaskContext* tc) { | |||
290 | k[i] += 16*(c2 - 87); | 291 | k[i] += 16*(c2 - 87); |
291 | } | 292 | } |
292 | 293 | ||
294 | /* FIXME: update costs in heap */ | ||
293 | struct map_entry* map_entry = GNUNET_CONTAINER_multihashmap_get(hashmap, &key); | 295 | struct map_entry* map_entry = GNUNET_CONTAINER_multihashmap_get(hashmap, &key); |
294 | uint16_t offset = ntohs(pkt->addroffset); | 296 | uint16_t offset = ntohs(pkt->addroffset); |
295 | 297 | ||
@@ -450,6 +452,7 @@ receive_udp_back (void *cls, struct GNUNET_MESH_Tunnel* tunnel, | |||
450 | GNUNET_HashCode* key = address_mapping_exists(pkt6->ip6_hdr.sadr); | 452 | GNUNET_HashCode* key = address_mapping_exists(pkt6->ip6_hdr.sadr); |
451 | GNUNET_assert (key != NULL); | 453 | GNUNET_assert (key != NULL); |
452 | 454 | ||
455 | /* FIXME: update costs in heap */ | ||
453 | struct map_entry *me = GNUNET_CONTAINER_multihashmap_get(hashmap, key); | 456 | struct map_entry *me = GNUNET_CONTAINER_multihashmap_get(hashmap, key); |
454 | 457 | ||
455 | GNUNET_free(key); | 458 | GNUNET_free(key); |
@@ -523,6 +526,7 @@ receive_tcp_back (void *cls, struct GNUNET_MESH_Tunnel* tunnel, | |||
523 | GNUNET_HashCode* key = address_mapping_exists(pkt6->ip6_hdr.sadr); | 526 | GNUNET_HashCode* key = address_mapping_exists(pkt6->ip6_hdr.sadr); |
524 | GNUNET_assert (key != NULL); | 527 | GNUNET_assert (key != NULL); |
525 | 528 | ||
529 | /* FIXME: update costs in heap */ | ||
526 | struct map_entry *me = GNUNET_CONTAINER_multihashmap_get(hashmap, key); | 530 | struct map_entry *me = GNUNET_CONTAINER_multihashmap_get(hashmap, key); |
527 | 531 | ||
528 | GNUNET_free(key); | 532 | GNUNET_free(key); |