aboutsummaryrefslogtreecommitdiff
path: root/src/ats/plugin_ats_mlp.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-02-05 00:53:22 +0000
committerChristian Grothoff <christian@grothoff.org>2015-02-05 00:53:22 +0000
commit15dd8e6cc1199d611d804853e134882bf13b234a (patch)
tree7cc90886eabe8d0ffa397a319e12a87042d0ba28 /src/ats/plugin_ats_mlp.c
parentbf6a2c9deeff7a3b384eb029d8267d6099066df3 (diff)
downloadgnunet-15dd8e6cc1199d611d804853e134882bf13b234a.tar.gz
gnunet-15dd8e6cc1199d611d804853e134882bf13b234a.zip
Various changes:
- removed "in_use" from being passed to ATS, no longer needed as we tell ATS when we cannot follow a suggestion by removing the address; simplifies the code a lot - better handling of state machine, fallback to primary session if address switch to new session timed out - nicer logging - more comments - new testcase failures, because of #3652, #3651 and #3650 (or more that i missed).
Diffstat (limited to 'src/ats/plugin_ats_mlp.c')
-rw-r--r--src/ats/plugin_ats_mlp.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/ats/plugin_ats_mlp.c b/src/ats/plugin_ats_mlp.c
index 75bb76dde..15fa5e6bd 100644
--- a/src/ats/plugin_ats_mlp.c
+++ b/src/ats/plugin_ats_mlp.c
@@ -2064,25 +2064,6 @@ GAS_mlp_address_session_changed (void *solver,
2064 2064
2065 2065
2066/** 2066/**
2067 * Transport session for this address has changed
2068 *
2069 * NOTE: values in addresses are already updated
2070 *
2071 * @param solver solver handle
2072 * @param address the address
2073 * @param in_use usage state
2074 */
2075static void
2076GAS_mlp_address_inuse_changed (void *solver,
2077 struct ATS_Address *address,
2078 int in_use)
2079{
2080 /* Nothing to do here */
2081 return;
2082}
2083
2084
2085/**
2086 * Network scope for this address has changed 2067 * Network scope for this address has changed
2087 * 2068 *
2088 * NOTE: values in addresses are already updated 2069 * NOTE: values in addresses are already updated
@@ -2973,7 +2954,6 @@ libgnunet_plugin_ats_mlp_init (void *cls)
2973 env->sf.s_add = &GAS_mlp_address_add; 2954 env->sf.s_add = &GAS_mlp_address_add;
2974 env->sf.s_address_update_property = &GAS_mlp_address_property_changed; 2955 env->sf.s_address_update_property = &GAS_mlp_address_property_changed;
2975 env->sf.s_address_update_session = &GAS_mlp_address_session_changed; 2956 env->sf.s_address_update_session = &GAS_mlp_address_session_changed;
2976 env->sf.s_address_update_inuse = &GAS_mlp_address_inuse_changed;
2977 env->sf.s_address_update_network = &GAS_mlp_address_change_network; 2957 env->sf.s_address_update_network = &GAS_mlp_address_change_network;
2978 env->sf.s_get = &GAS_mlp_get_preferred_address; 2958 env->sf.s_get = &GAS_mlp_get_preferred_address;
2979 env->sf.s_get_stop = &GAS_mlp_stop_get_preferred_address; 2959 env->sf.s_get_stop = &GAS_mlp_stop_get_preferred_address;