summaryrefslogtreecommitdiff
path: root/src/ipcpd
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@intec.ugent.be>2016-07-12 15:44:04 +0200
committerSander Vrijders <sander.vrijders@intec.ugent.be>2016-07-12 15:44:04 +0200
commit3fc1cd9ec6d8473b40461da79176fe3ec41f47fa (patch)
tree0e39c5e9405ba0695eec06c06c77e7e9a22949cb /src/ipcpd
parent1a35c29ba743424df0cb27408cf08f7022a1c5f5 (diff)
downloadouroboros-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/ipcpd')
-rw-r--r--src/ipcpd/ipcp-ops.h3
-rw-r--r--src/ipcpd/ipcp.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/src/ipcpd/ipcp-ops.h b/src/ipcpd/ipcp-ops.h
index 8f444a79..e43c2c38 100644
--- a/src/ipcpd/ipcp-ops.h
+++ b/src/ipcpd/ipcp-ops.h
@@ -30,8 +30,7 @@
struct ipcp_ops {
int (* ipcp_bootstrap)(struct dif_config * conf);
- int (* ipcp_enroll)(char * dif_name,
- char * n_1_dif);
+ int (* ipcp_enroll)(char * dif_name);
int (* ipcp_name_reg)(char * name);
int (* ipcp_name_unreg)(char * name);
int (* ipcp_flow_alloc)(pid_t n_api,
diff --git a/src/ipcpd/ipcp.c b/src/ipcpd/ipcp.c
index 444d17bb..fb31cf1b 100644
--- a/src/ipcpd/ipcp.c
+++ b/src/ipcpd/ipcp.c
@@ -184,8 +184,7 @@ void * ipcp_main_loop(void * o)
}
ret_msg.has_result = true;
ret_msg.result =
- _ipcp->ops->ipcp_enroll(msg->dif_name,
- msg->n_1_dif);
+ _ipcp->ops->ipcp_enroll(msg->dif_name);
break;
case IPCP_MSG_CODE__IPCP_NAME_REG: