From 2cf4f88fc8b957c15ae93a2eb3e56ebdb07a0381 Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Tue, 6 Sep 2016 10:29:02 +0200 Subject: ipcpd: normal: Add operations to get and set the PCI This adds the operations needed in the normal IPCP to get and set the Protocol Control Information. It allows to allocate or release space in the current DU. The struct pci can be serialized into newly allocate space. Vice versa, a struct pci can be deserialized given a DU. It allows for decreasing the TTL in the DU and for calculating the CRC32. The TTL and CRC32 can now be selected when creating a new DIF. --- src/ipcpd/normal/frct.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/ipcpd/normal/frct.c') diff --git a/src/ipcpd/normal/frct.c b/src/ipcpd/normal/frct.c index 7c2eba61..417815b7 100644 --- a/src/ipcpd/normal/frct.c +++ b/src/ipcpd/normal/frct.c @@ -126,6 +126,14 @@ int frct_fini() return 0; } +struct dt_const * frct_dt_const() +{ + if (frct == NULL) + return NULL; + + return frct->dtc; +} + int frct_dt_flow(int fd, enum qos_cube qos) { -- cgit v1.2.3