summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2020-01-25 12:38:38 +0100
committerSander Vrijders <sander@ouroboros.rocks>2020-01-25 16:02:21 +0100
commit524445d9c625b05334818e2d900cf79d1ced5aba (patch)
tree5f71ebb4a2f9c984a5bf07c5b592528a55464460 /include
parenta3e14d1c76d15cf150db4442c3d2fecc604d5e8e (diff)
downloadouroboros-524445d9c625b05334818e2d900cf79d1ced5aba.tar.gz
ouroboros-524445d9c625b05334818e2d900cf79d1ced5aba.zip
ipcpd: Filter fqueue events in packet handlers
The eth, udp and local IPCPs were not filtering out the event types from the flow, causing some reads when there are no packets in the queue. The types are now also organized as flags so they can be filtered more quickly if needed. Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'include')
-rw-r--r--include/ouroboros/fqueue.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/ouroboros/fqueue.h b/include/ouroboros/fqueue.h
index 793ff250..797e3af6 100644
--- a/include/ouroboros/fqueue.h
+++ b/include/ouroboros/fqueue.h
@@ -29,11 +29,11 @@
#include <time.h>
enum fqtype {
- FLOW_PKT = 0,
- FLOW_DOWN,
- FLOW_UP,
- FLOW_ALLOC,
- FLOW_DEALLOC
+ FLOW_PKT = (1 << 0),
+ FLOW_DOWN = (1 << 1),
+ FLOW_UP = (1 << 2),
+ FLOW_ALLOC = (1 << 3),
+ FLOW_DEALLOC = (1 << 4)
};
struct flow_set;