summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_engine.h
diff options
context:
space:
mode:
Diffstat (limited to 'bgpd/bgp_engine.h')
-rw-r--r--bgpd/bgp_engine.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/bgpd/bgp_engine.h b/bgpd/bgp_engine.h
index 9245d21a..57780dc5 100644
--- a/bgpd/bgp_engine.h
+++ b/bgpd/bgp_engine.h
@@ -46,5 +46,24 @@ bgp_engine_start(void) ;
+/*==============================================================================
+ *
+ */
+
+/* Send given message to the BGP Engine -- ordinary
+ */
+Inline void
+bgp_to_engine(mqueue_block mqb)
+{
+ mqueue_enqueue(p_bgp_engine->queue, mqb, 0) ;
+} ;
+
+/* Send given message to the BGP Engine -- priority
+ */
+Inline void
+bgp_to_engine_priority(mqueue_block mqb)
+{
+ mqueue_enqueue(p_bgp_engine->queue, mqb, 1) ;
+} ;
#endif /* QUAGGA_BGP_ENGINE_H */