diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2017-05-02 00:37:45 +0000 |
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2017-11-30 16:17:59 -0500 |
| commit | 424ab01d0f69a71b865e5f2d817baea7ce263e44 (patch) | |
| tree | 82f06cf1dae116f6db05cd5409475a6f8b6dcf1e /lib/thread.h | |
| parent | 56257a44e408b7491090b47e24b22beeb1cfd35e (diff) | |
bgpd: implement buffered reads
* Move and modify all network input related code to bgp_io.c
* Add a real input buffer to `struct peer`
* Move connection initialization to its own thread.c task instead of
piggybacking off of bgp_read()
* Tons of little fixups
Primary changes are in bgp_packet.[ch], bgp_io.[ch], bgp_fsm.[ch].
Changes made elsewhere are almost exclusively refactoring peer->ibuf to
peer->curr since peer->ibuf is now the true FIFO packet input buffer
while peer->curr represents the packet currently being processed by the
main pthread.
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/thread.h')
| -rw-r--r-- | lib/thread.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/thread.h b/lib/thread.h index 1cf19d987f..c830446e10 100644 --- a/lib/thread.h +++ b/lib/thread.h @@ -26,9 +26,6 @@ #include <poll.h> #include "monotime.h" -#include "memory.h" -DECLARE_MTYPE(PTHREAD) - struct rusage_t { struct rusage cpu; struct timeval real; |
