diff options
author | dimitri staessens <dimitri.staessens@ugent.be> | 2017-03-21 15:21:52 +0100 |
---|---|---|
committer | dimitri staessens <dimitri.staessens@ugent.be> | 2017-03-21 15:21:52 +0100 |
commit | 0c8d8e419f7c9052d88bb9765bf43b01187977d0 (patch) | |
tree | 75f499a09782dd03b9d61e69166b659f9d09f698 /include | |
parent | 55c8721cd2682a360c3eaeb6c51ef3455c320416 (diff) | |
download | ouroboros-0c8d8e419f7c9052d88bb9765bf43b01187977d0.tar.gz ouroboros-0c8d8e419f7c9052d88bb9765bf43b01187977d0.zip |
lib: Add queued SDUs when adding fd to flow_set
This solves some race conditions where packets arrive on a flow before
it is added to a flow_set.
Diffstat (limited to 'include')
-rw-r--r-- | include/ouroboros/shm_rbuff.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ouroboros/shm_rbuff.h b/include/ouroboros/shm_rbuff.h index f31dab63..8471f47f 100644 --- a/include/ouroboros/shm_rbuff.h +++ b/include/ouroboros/shm_rbuff.h @@ -53,4 +53,6 @@ ssize_t shm_rbuff_read(struct shm_rbuff * rb); ssize_t shm_rbuff_read_b(struct shm_rbuff * rb, const struct timespec * timeout); +size_t shm_rbuff_queued(struct shm_rbuff * rb); + #endif /* OUROBOROS_SHM_RBUFF_H */ |