summaryrefslogtreecommitdiff
path: root/src/ipcpd/normal/main.c
diff options
context:
space:
mode:
authorSander Vrijders <[email protected]>2016-10-27 16:40:39 +0200
committerSander Vrijders <[email protected]>2016-10-27 18:40:31 +0200
commit09a348b325e2b819e3deb952c1b3a6b141d75572 (patch)
tree8b9a093c36db09513dfb333cc1c90763c3112df9 /src/ipcpd/normal/main.c
parent6a61274c2289a06b4c23d5c8b2e36d924eb72a48 (diff)
downloadouroboros-09a348b325e2b819e3deb952c1b3a6b141d75572.tar.gz
ouroboros-09a348b325e2b819e3deb952c1b3a6b141d75572.zip
ipcpd: normal: Fix bugs in connection establishment
This fixes some bugs in connection establishment over the normal IPCP.
Diffstat (limited to 'src/ipcpd/normal/main.c')
-rw-r--r--src/ipcpd/normal/main.c10
1 files changed, 10 insertions, 0 deletions
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;
}