diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-12-02 20:50:47 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-02 20:50:47 -0500 |
| commit | 0fb4ab03888247f3fcb48c5e388aa5ef19eb1230 (patch) | |
| tree | 5819d22bdeba9e1ec19be91d5d346fb4b72aad93 /lib/stream.h | |
| parent | cb5a294642575f8c0789631226c7afa70040be78 (diff) | |
| parent | ec62c60fc8b6b621258b9de0223d19f7e668b261 (diff) | |
Merge pull request #6950 from opensourcerouting/bfd-distributed-v3
bfdd: distributed BFD
Diffstat (limited to 'lib/stream.h')
| -rw-r--r-- | lib/stream.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/stream.h b/lib/stream.h index 4f75f121ca..dedbf37984 100644 --- a/lib/stream.h +++ b/lib/stream.h @@ -262,6 +262,16 @@ extern int stream_empty(struct stream *); /* is the stream empty? */ /* debugging */ extern void stream_hexdump(const struct stream *s); +/** + * Reorganize the buffer data so it can fit more. This function is normally + * called right after stream data is consumed so we can read more data + * (the functions that consume data start with `stream_get*()` and macros + * `STREAM_GET*()`). + * + * \param s stream pointer. + */ +extern void stream_pulldown(struct stream *s); + /* deprecated */ extern uint8_t *stream_pnt(struct stream *); |
