From 3fc1cd9ec6d8473b40461da79176fe3ec41f47fa Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Tue, 12 Jul 2016 15:44:04 +0200 Subject: 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. --- src/lib/ipcp.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/lib/ipcp.c') diff --git a/src/lib/ipcp.c b/src/lib/ipcp.c index 3fd31f37..373baafd 100644 --- a/src/lib/ipcp.c +++ b/src/lib/ipcp.c @@ -221,20 +221,18 @@ int ipcp_bootstrap(pid_t api, return ret; } -int ipcp_enroll(pid_t api, - char * dif_name, - char * n_1_dif) +int ipcp_enroll(pid_t api, + char * dif_name) { ipcp_msg_t msg = IPCP_MSG__INIT; ipcp_msg_t * recv_msg = NULL; int ret = -1; - if (n_1_dif == NULL || dif_name == NULL) + if (dif_name == NULL) return -EINVAL; msg.code = IPCP_MSG_CODE__IPCP_ENROLL; msg.dif_name = dif_name; - msg.n_1_dif = n_1_dif; recv_msg = send_recv_ipcp_msg(api, &msg); if (recv_msg == NULL) { @@ -252,8 +250,8 @@ int ipcp_enroll(pid_t api, return ret; } -int ipcp_name_reg(pid_t api, - char * name) +int ipcp_name_reg(pid_t api, + char * name) { ipcp_msg_t msg = IPCP_MSG__INIT; ipcp_msg_t * recv_msg = NULL; -- cgit v1.2.3