summaryrefslogtreecommitdiff
path: root/src/lib/dev.c
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri.staessens@ugent.be>2017-11-08 19:25:48 +0100
committerSander Vrijders <sander.vrijders@ugent.be>2017-11-08 21:40:28 +0100
commit35c43358a110758090b48dd18628bb285ffddfc6 (patch)
tree9746475ac579e516e86f720a3bcb107bf6e36784 /src/lib/dev.c
parentc59053040ce927f2926e5a569b19bdd129c354a7 (diff)
downloadouroboros-35c43358a110758090b48dd18628bb285ffddfc6.tar.gz
ouroboros-35c43358a110758090b48dd18628bb285ffddfc6.zip
lib: Use packed struct for FRCT header access
This replaces the variable FRCT header with a packed struct, which significantly simplifies the implementation. The shm_du_buff calls to release the head/tail are updated to return a pointer to the original head or the new tail (in symmetry to the alloc calls, which return a pointer to the new head and old tail), so that it immediately points to the structure that is needed. The frct_pci sources are removed and frct is now fully in the frct.c source file. Signed-off-by: Dimitri Staessens <dimitri.staessens@ugent.be> Signed-off-by: Sander Vrijders <sander.vrijders@ugent.be>
Diffstat (limited to 'src/lib/dev.c')
-rw-r--r--src/lib/dev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/dev.c b/src/lib/dev.c
index ff22cca6..e80bf9f9 100644
--- a/src/lib/dev.c
+++ b/src/lib/dev.c
@@ -24,6 +24,7 @@
#include "config.h"
+#include <ouroboros/hash.h>
#include <ouroboros/errno.h>
#include <ouroboros/dev.h>
#include <ouroboros/ipcp-dev.h>
@@ -31,6 +32,7 @@
#include <ouroboros/sockets.h>
#include <ouroboros/fccntl.h>
#include <ouroboros/bitmap.h>
+#include <ouroboros/random.h>
#include <ouroboros/shm_flow_set.h>
#include <ouroboros/shm_rdrbuff.h>
#include <ouroboros/shm_rbuff.h>
@@ -39,7 +41,6 @@
#include <ouroboros/qoscube.h>
#include <ouroboros/timerwheel.h>
-#include "frct_pci.h"
#include "rq.h"
#include <stdlib.h>