summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_keepalives.h
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2017-05-02 02:37:45 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2017-11-30 22:17:59 +0100
commit424ab01d0f69a71b865e5f2d817baea7ce263e44 (patch)
tree82f06cf1dae116f6db05cd5409475a6f8b6dcf1e /bgpd/bgp_keepalives.h
parentbgpd: move bgp i/o to a separate source file (diff)
downloadfrr-424ab01d0f69a71b865e5f2d817baea7ce263e44.tar.xz
frr-424ab01d0f69a71b865e5f2d817baea7ce263e44.zip
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 'bgpd/bgp_keepalives.h')
-rw-r--r--bgpd/bgp_keepalives.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/bgpd/bgp_keepalives.h b/bgpd/bgp_keepalives.h
index d74b69e90..602b0da77 100644
--- a/bgpd/bgp_keepalives.h
+++ b/bgpd/bgp_keepalives.h
@@ -24,6 +24,7 @@
#ifndef _BGP_KEEPALIVES_H_
#define _BGP_KEEPALIVES_H_
+#include "frr_pthread.h"
#include "bgpd.h"
/* Thread control flag.
@@ -88,6 +89,6 @@ extern void *peer_keepalives_start(void *arg);
extern void peer_keepalives_wake(void);
/* stop function */
-int peer_keepalives_stop(void **result);
+int peer_keepalives_stop(void **result, struct frr_pthread *fpt);
#endif /* _BGP_KEEPALIVES_H */