summaryrefslogtreecommitdiff
path: root/src/ipcpd/normal/dt.c
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@ugent.be>2017-09-20 12:17:54 +0000
committerdimitri staessens <dimitri.staessens@ugent.be>2017-09-20 12:17:54 +0000
commit0934aa0242f0d61f2b8f7311402cf009b88f1ca6 (patch)
tree6b28d7f1fd7407d88c17c5a34b068e72748d7dff /src/ipcpd/normal/dt.c
parent1f723a8a2a02b4657f1d286f98f714895e15a5d8 (diff)
parent2c7e3030edb84abae14042f7a1a22b44255324be (diff)
downloadouroboros-0934aa0242f0d61f2b8f7311402cf009b88f1ca6.tar.gz
ouroboros-0934aa0242f0d61f2b8f7311402cf009b88f1ca6.zip
Merged in sandervrijders/ouroboros/be-pff (pull request #604)
ipcpd: normal: Make PFF policy-based
Diffstat (limited to 'src/ipcpd/normal/dt.c')
-rw-r--r--src/ipcpd/normal/dt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ipcpd/normal/dt.c b/src/ipcpd/normal/dt.c
index 2db0e7e2..f99f7072 100644
--- a/src/ipcpd/normal/dt.c
+++ b/src/ipcpd/normal/dt.c
@@ -164,6 +164,7 @@ static void * dt_conn_handle(void * o)
}
int dt_init(enum pol_routing pr,
+ enum pol_pff pp,
uint8_t addr_size,
uint8_t fd_size,
bool has_ttl)
@@ -201,8 +202,9 @@ int dt_init(enum pol_routing pr,
}
for (i = 0; i < QOS_CUBE_MAX; ++i) {
- dt.pff[i] = pff_create();
+ dt.pff[i] = pff_create(pp);
if (dt.pff[i] == NULL) {
+ log_err("Failed to create a PFF.");
for (j = 0; j < i; ++j)
pff_destroy(dt.pff[j]);
goto fail_pff;