From 1ef913cd36bb6ec10273a614568e92da387aefec Mon Sep 17 00:00:00 2001 From: Joel Cunningham Date: Mon, 26 Oct 2015 09:29:46 -0500 Subject: [PATCH] Update snd_queuelen comment documentation This commit updates the snd_queuelen comment documentation to reflect that snd_queuelen tracks the number of pbufs currently in the send buffer (unsent + unacked queues) rather than the number of pbufs available in the buffer (which was what previous comment implied) --- src/include/lwip/tcp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/lwip/tcp.h b/src/include/lwip/tcp.h index 85c12bfc..1c7440f4 100644 --- a/src/include/lwip/tcp.h +++ b/src/include/lwip/tcp.h @@ -252,7 +252,7 @@ struct tcp_pcb { tcpwnd_size_t snd_buf; /* Available buffer space for sending (in bytes). */ #define TCP_SNDQUEUELEN_OVERFLOW (0xffffU-3) - u16_t snd_queuelen; /* Available buffer space for sending (in pbufs). */ + u16_t snd_queuelen; /* Number of pbufs currently in the send buffer. */ #if TCP_OVERSIZE /* Extra bytes available at the end of the last pbuf in unsent. */