diff options
author | Dimitri Staessens <dimitri.staessens@ugent.be> | 2018-12-07 17:23:06 +0100 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@ugent.be> | 2018-12-07 17:33:21 +0100 |
commit | 158db8f8f89c03b9c62cf8259bad6f5e7d4f57c0 (patch) | |
tree | fc9747e2aebc48f6c60e89484d5e3ba0dd583b5f /src/lib | |
parent | 555e0a91ee711599b909857a9aae3ac83310b3fa (diff) | |
download | ouroboros-158db8f8f89c03b9c62cf8259bad6f5e7d4f57c0.tar.gz ouroboros-158db8f8f89c03b9c62cf8259bad6f5e7d4f57c0.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 <dimitri.staessens@ugent.be>
Signed-off-by: Sander Vrijders <sander.vrijders@ugent.be>
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/dev.c | 2 |
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); |