summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_connection.h
diff options
context:
space:
mode:
Diffstat (limited to 'bgpd/bgp_connection.h')
-rw-r--r--bgpd/bgp_connection.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/bgpd/bgp_connection.h b/bgpd/bgp_connection.h
index e4c183b8..c620de55 100644
--- a/bgpd/bgp_connection.h
+++ b/bgpd/bgp_connection.h
@@ -234,6 +234,16 @@ bgp_connection_queue_del(bgp_connection connection) ;
extern void
bgp_connection_queue_process(void) ;
+Inline int
+bgp_connection_no_pending(bgp_connection connection, bgp_connection* is_pending)
+{
+ return ( (mqueue_local_head(&connection->pending_queue) == NULL)
+ || (*is_pending != NULL) ) ;
+} ;
+
+extern void
+bgp_connection_add_pending(bgp_connection connection, mqueue_block mqb,
+ bgp_connection* is_pending) ;
/*------------------------------------------------------------------------------
* See if have enough room for what want to write PLUS 1.