From 158db8f8f89c03b9c62cf8259bad6f5e7d4f57c0 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Fri, 7 Dec 2018 17:23:06 +0100 Subject: lib: Fix reading tx queue length The fccntl call was reading from the RX queue instead of the TX queue. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- CMakeLists.txt | 2 +- src/lib/dev.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 71c468e1..24e025d4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,7 +7,7 @@ project(ouroboros C) include(GNUInstallDirs) set(PACKAGE_VERSION_MAJOR 0) -set(PACKAGE_VERSION_MINOR 13) +set(PACKAGE_VERSION_MINOR 14) set(PACKAGE_VERSION_PATCH 0) set(PACKAGE_NAME "${CMAKE_PROJECT_NAME}") diff --git a/src/lib/dev.c b/src/lib/dev.c index d596758e..42eed7e4 100644 --- a/src/lib/dev.c +++ b/src/lib/dev.c @@ -751,7 +751,7 @@ int fccntl(int fd, break; case FLOWGTXQLEN: qlen = va_arg(l, size_t *); - *qlen = shm_rbuff_queued(flow->rx_rb); + *qlen = shm_rbuff_queued(flow->tx_rb); break; case FLOWSFLAGS: flow->oflags = va_arg(l, uint32_t); -- cgit v1.2.3