diff options
author | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2016-10-27 16:41:03 +0000 |
---|---|---|
committer | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2016-10-27 16:41:03 +0000 |
commit | 64c8f8f3371799b8e818569666fd85e723c84d3a (patch) | |
tree | 9eea2090fc2083b5cd27d8fde2829075ef8cdeb0 /src/ipcpd/normal/main.c | |
parent | e84e294de2e73db418e8f249d795d2dd6c6faae0 (diff) | |
parent | 09a348b325e2b819e3deb952c1b3a6b141d75572 (diff) | |
download | ouroboros-64c8f8f3371799b8e818569666fd85e723c84d3a.tar.gz ouroboros-64c8f8f3371799b8e818569666fd85e723c84d3a.zip |
Merged in sandervrijders/ouroboros/be-fix-conn (pull request #291)0.3
ipcpd: normal: Fix bugs in connection establishment
Diffstat (limited to 'src/ipcpd/normal/main.c')
-rw-r--r-- | src/ipcpd/normal/main.c | 10 |
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; } |