diff options
author | Chris Hall <GMCH@hestia.halldom.com> | 2010-01-08 00:51:19 +0000 |
---|---|---|
committer | Chris Hall <GMCH@hestia.halldom.com> | 2010-01-08 00:51:19 +0000 |
commit | 6b5024b3c14b0acf5d4ec05f7ea78a7323c96d59 (patch) | |
tree | 89956e840ea5de81b5b564732032d93b95638af0 /bgpd/bgp_engine.h | |
parent | 18874dc91124118a678984241b18953beb8bb9d9 (diff) | |
download | quagga-6b5024b3c14b0acf5d4ec05f7ea78a7323c96d59.tar.bz2 quagga-6b5024b3c14b0acf5d4ec05f7ea78a7323c96d59.tar.xz |
Continuing work-in-progress
modified: bgpd/Makefile.am
modified: bgpd/bgp.h
modified: bgpd/bgp_common.h
modified: bgpd/bgp_connection.c
modified: bgpd/bgp_connection.h
modified: bgpd/bgp_engine.h
modified: bgpd/bgp_fsm.c
modified: bgpd/bgp_network.c
modified: bgpd/bgp_network.h
new file: bgpd/bgp_peer_index.c
new file: bgpd/bgp_peer_index.h
modified: bgpd/bgp_session.c
modified: bgpd/bgp_session.h
modified: lib/memtypes.c
modified: lib/mqueue.h
Diffstat (limited to 'bgpd/bgp_engine.h')
-rw-r--r-- | bgpd/bgp_engine.h | 19 |
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 */ |