summaryrefslogtreecommitdiffstats
path: root/lib/ringbuf.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* *: auto-convert to SPDX License IDsDavid Lamparter2023-02-091-14/+1
| | | | | | Done with a combination of regex'ing and banging my head against a wall. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* Revert "lib: add ringbuf socket read function"Quentin Young2021-04-291-11/+0
| | | | This reverts commit d9d7af1a52d77ed0074ebb72f87678308296e74e.
* lib: add ringbuf socket read functionRafael Zalamena2021-03-051-0/+11
| | | | | | | Implement new ringbuf function to do the proper socket reads without the need of intermediary buffers. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
* lib: add extern "C" {} blocks to all libfrr headersRenato Westphal2019-02-121-0/+8
| | | | | | | These are necessary to use functions defined in these headers from C++. Signed-off-by: David Lamparter <equinox@diac24.net> Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
* lib: add ringbuf_copy()Quentin Young2018-01-031-0/+10
| | | | | | Quick 'n easy way to copy the contents of one ringbuf to another. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
* lib: add ringbuf_peek()Quentin Young2017-12-271-0/+15
| | | | | | | | | | | Peek functionality for ring buffers and associated tests. Also: * Slight optimization to avoid 0-byte memcpy() by changing > to >= * Add rv checks for some ringbuf_[put|get] calls that were missing them in the test Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
* lib: add ring bufferQuentin Young2017-12-191-0/+100
Simple ring buffer implementation useful for fixed size FIFO queues. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>