diff options
author | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-07-12 15:44:04 +0200 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-07-12 15:44:04 +0200 |
commit | 3fc1cd9ec6d8473b40461da79176fe3ec41f47fa (patch) | |
tree | 0e39c5e9405ba0695eec06c06c77e7e9a22949cb /src/irmd | |
parent | 1a35c29ba743424df0cb27408cf08f7022a1c5f5 (diff) | |
download | ouroboros-3fc1cd9ec6d8473b40461da79176fe3ec41f47fa.tar.gz ouroboros-3fc1cd9ec6d8473b40461da79176fe3ec41f47fa.zip |
lib: Remove N-1 DIF param from enroll operation
This removes the parameter N-1 DIF from the enroll operation. IPCPs
should just allocate a flow to a DIF name and let the N-1 DIF resolve
it.
Diffstat (limited to 'src/irmd')
-rw-r--r-- | src/irmd/main.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/irmd/main.c b/src/irmd/main.c index 30ecbc59..17e51c05 100644 --- a/src/irmd/main.c +++ b/src/irmd/main.c @@ -422,8 +422,6 @@ static int bootstrap_ipcp(pid_t api, static int enroll_ipcp(pid_t api, char * dif_name) { - char ** n_1_difs = NULL; - ssize_t n_1_difs_size = 0; struct ipcp_entry * entry = NULL; pthread_rwlock_rdlock(&instance->state_lock); @@ -451,17 +449,7 @@ static int enroll_ipcp(pid_t api, return -1; } - n_1_difs_size = nsm_resolve(dif_name, n_1_difs); - if (n_1_difs_size < 1) { - free(entry->dif_name); - entry->dif_name = NULL; - pthread_rwlock_unlock(&instance->reg_lock); - pthread_rwlock_unlock(&instance->state_lock); - LOG_ERR("Could not find N-1 DIFs."); - return -1; - } - - if (ipcp_enroll(api, dif_name, n_1_difs[0])) { + if (ipcp_enroll(api, dif_name)) { free(entry->dif_name); entry->dif_name = NULL; pthread_rwlock_unlock(&instance->reg_lock); |