summaryrefslogtreecommitdiff
path: root/src/ipcpd
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@ugent.be>2017-08-01 17:06:31 +0200
committerSander Vrijders <sander.vrijders@ugent.be>2017-08-01 17:34:59 +0200
commit6437c1a647c17ee3ce1de9d56cc1b78824791ee1 (patch)
treebf9d89674ebec823265e5a61c7fdd51df64fa88e /src/ipcpd
parent490ebfdb483c6f13aa45e5d80610f55ee95f9fae (diff)
downloadouroboros-6437c1a647c17ee3ce1de9d56cc1b78824791ee1.tar.gz
ouroboros-6437c1a647c17ee3ce1de9d56cc1b78824791ee1.zip
lib: Simplify initializing flows
This refactors dev.c to have a common function called init_flow that is called whenever a flow is allocated in dev.c
Diffstat (limited to 'src/ipcpd')
-rw-r--r--src/ipcpd/ipcp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ipcpd/ipcp.c b/src/ipcpd/ipcp.c
index a56e46f7..48ff046c 100644
--- a/src/ipcpd/ipcp.c
+++ b/src/ipcpd/ipcp.c
@@ -290,7 +290,9 @@ static void * mainloop(void * o)
break;
}
- fd = np1_flow_alloc(msg->api, msg->port_id);
+ fd = np1_flow_alloc(msg->api,
+ msg->port_id,
+ msg->qoscube);
if (fd < 0) {
log_err("Failed allocating fd on port_id %d.",
msg->port_id);