From 2c7e3030edb84abae14042f7a1a22b44255324be Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Wed, 20 Sep 2017 13:56:17 +0200 Subject: ipcpd: normal: Make PFF policy-based This turns the PDU Forwarding Function of the IPCP into a policy. For now only the simple PFF policy is available. --- src/ipcpd/normal/dt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/ipcpd/normal/dt.c') 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; -- cgit v1.2.3