From 09a348b325e2b819e3deb952c1b3a6b141d75572 Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Thu, 27 Oct 2016 16:40:39 +0200 Subject: ipcpd: normal: Fix bugs in connection establishment This fixes some bugs in connection establishment over the normal IPCP. --- src/ipcpd/normal/main.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/ipcpd/normal/main.c') diff --git a/src/ipcpd/normal/main.c b/src/ipcpd/normal/main.c index 2402972f..a5161718 100644 --- a/src/ipcpd/normal/main.c +++ b/src/ipcpd/normal/main.c @@ -108,6 +108,10 @@ static int normal_ipcp_name_query(char * name) * for certain names. */ + /* FIXME: Here for testing purposes */ + if (strcmp(name, "normal.app") == 0) + return 0; + return -1; } @@ -145,6 +149,12 @@ static int normal_ipcp_enroll(char * dif_name) pthread_rwlock_unlock(&ipcpi.state_lock); + /* FIXME: Remove once we obtain neighbors during enrollment */ + if (fmgr_nm1_dt_flow(dif_name, QOS_CUBE_BE)) { + LOG_ERR("Failed to establish data transfer flow."); + return -1; + } + return 0; } -- cgit v1.2.3