diff options
author | Sander Vrijders <[email protected]> | 2017-09-20 13:56:17 +0200 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2017-09-20 14:16:34 +0200 |
commit | 2c7e3030edb84abae14042f7a1a22b44255324be (patch) | |
tree | db0bb53b7627066ba44cc1f9f429e11d1fa7bf65 /src/ipcpd/normal/dt.c | |
parent | f9fd352f38c3c3d9e7824b8cf84b8f86e2a6d392 (diff) | |
download | ouroboros-2c7e3030edb84abae14042f7a1a22b44255324be.tar.gz ouroboros-2c7e3030edb84abae14042f7a1a22b44255324be.zip |
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.
Diffstat (limited to 'src/ipcpd/normal/dt.c')
-rw-r--r-- | src/ipcpd/normal/dt.c | 4 |
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; |