[tcp] implement TCP Circular Send Buffer (#7867)

This commit is contained in:
Sam Kumar
2022-07-05 00:33:40 -07:00
committed by Jonathan Hui
parent 5b430bf80b
commit 19f9ba20a3
10 changed files with 479 additions and 8 deletions
+1
View File
@@ -55,6 +55,7 @@ void lbuf_append(struct lbufhead* buffer, otLinkedBuffer* newentry) {
void lbuf_extend(struct lbufhead* buffer, size_t numbytes) {
buffer->tail->mLength += numbytes;
buffer->length += numbytes;
}
size_t lbuf_pop(struct lbufhead* buffer, size_t numbytes, uint32_t* ntraversed) {