summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorDimitri Staessens <[email protected]>2018-12-07 17:23:06 +0100
committerSander Vrijders <[email protected]>2018-12-07 17:33:21 +0100
commit158db8f8f89c03b9c62cf8259bad6f5e7d4f57c0 (patch)
treefc9747e2aebc48f6c60e89484d5e3ba0dd583b5f /src/lib
parent555e0a91ee711599b909857a9aae3ac83310b3fa (diff)
downloadouroboros-0.14.0.tar.gz
ouroboros-0.14.0.zip
lib: Fix reading tx queue length0.14.0
The fccntl call was reading from the RX queue instead of the TX queue. Signed-off-by: Dimitri Staessens <[email protected]> Signed-off-by: Sander Vrijders <[email protected]>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/dev.c2
1 files changed, 1 insertions, 1 deletions
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);