Public Methods
-  BGPPeer (LocalData *ld, BGPPeerData *pd, SocketClient *sock, BGPMain *m) 
- virtual   ~BGPPeer () 
- uint32_t  get_unique_id ()  const
- void  zero_stats () 
- void  clear_last_error () 
- BGPPeerData * swap_peerdata (BGPPeerData *pd) 
- void  connected (XorpFd s) 
- void  remove_accept_attempt (AcceptSession *conn) 
- SocketClient * swap_sockets (SocketClient *new_sock) 
- XorpFd  get_sock () 
- void  event_start () 
- void  event_stop (bool restart=false, bool automatic = false) 
- void  event_open () 
- void  event_open (const XorpFd sock) 
- void  event_closed () 
- void  event_openfail () 
- void  event_tranfatal () 
- void  event_connexp () 
- void  event_holdexp () 
- void  event_keepexp () 
- void  event_delay_open_exp () 
- void  event_idle_hold_exp () 
- void  event_openmess (const OpenPacket& p) 
- void  event_keepmess () 
- void  event_recvupdate (const UpdatePacket& p) 
- void  event_recvnotify (const NotificationPacket& p) 
- void  generate_open_message (OpenPacket& open) 
- void  notify_peer_of_error (const int error,
			      const int subcode = UNSPECIFIED,
			      const uint8_t*data = 0,
			      const size_t len = 0) 
- FSMState  state () 
- TimeVal  jitter (const TimeVal& t) 
- void  clear_all_timers () 
- void  start_connect_retry_timer () 
- void  clear_connect_retry_timer () 
- void  restart_connect_retry_timer () 
- void  start_keepalive_timer () 
- void  clear_keepalive_timer () 
- void  start_hold_timer () 
- void  clear_hold_timer () 
- void  restart_hold_timer () 
- void  start_stopped_timer () 
- void  clear_stopped_timer () 
- void  start_idle_hold_timer () 
- void  clear_idle_hold_timer () 
- bool  running_idle_hold_timer ()  const
- void  start_delay_open_timer () 
- void  clear_delay_open_timer () 
- bool  get_message (BGPPacket::Status status, const uint8_t *buf, size_t len,
		     SocketClient *socket_client) 
- PeerOutputState  send_message (const BGPPacket& p) 
- void  send_message_complete (SocketClient::Event, const uint8_t *buf) 
- inline string  str ()  const
- bool  is_connected ()  const
- bool  still_reading ()  const
- IPv4  id ()  const
- BGPMain*  main () 
- const BGPPeerData*  peerdata ()  const
- bool  ibgp ()  const
- bool  send_netreachability (const BGPUpdateAttrib &n) 
- virtual  PeerOutputState  send_update_message (const UpdatePacket& p) 
- uint32_t  get_established_transitions ()  const
- uint32_t  get_established_time ()  const
- void  get_msg_stats (uint32_t& in_updates, 
		       uint32_t& out_updates, 
		       uint32_t& in_msgs, 
		       uint32_t& out_msgs, 
		       uint16_t& last_error, 
		       uint32_t& in_update_elapsed)  const
Public Static Methods
Public Members
 [virtual]
| uint32_t  get_unique_id () 
 | get_unique_id | 
 [const]
 Get this peers unique ID.
     
| void  zero_stats () 
 | zero_stats | 
 Zero all the stats counters.
     
| void  clear_last_error () 
 | clear_last_error | 
 Clear the last error.
     
 Replace the old peerdata with a new copy. It is the
 responsiblity of the caller to free the memory.
     
| void  connected (XorpFd s) 
 | connected | 
| void  remove_accept_attempt (AcceptSession *conn) 
 | remove_accept_attempt | 
| void  event_start () 
 | event_start | 
 state machine handlers for the various BGP events
     
| void  event_stop (bool restart=false, bool automatic = false) 
 | event_stop | 
| void  event_open () 
 | event_open | 
| void  event_open (const XorpFd sock) 
 | event_open | 
| void  event_closed () 
 | event_closed | 
| void  event_openfail () 
 | event_openfail | 
| void  event_tranfatal () 
 | event_tranfatal | 
| void  event_connexp () 
 | event_connexp | 
| void  event_holdexp () 
 | event_holdexp | 
| void  event_keepexp () 
 | event_keepexp | 
| void  event_delay_open_exp () 
 | event_delay_open_exp | 
| void  event_idle_hold_exp () 
 | event_idle_hold_exp | 
| void  event_openmess (const OpenPacket& p) 
 | event_openmess | 
| void  event_keepmess () 
 | event_keepmess | 
| void  event_recvupdate (const UpdatePacket& p) 
 | event_recvupdate | 
| void  generate_open_message (OpenPacket& open) 
 | generate_open_message | 
| void  notify_peer_of_error (const int error,
			      const int subcode = UNSPECIFIED,
			      const uint8_t*data = 0,
			      const size_t len = 0) 
 | notify_peer_of_error | 
| const char * pretty_print_state (FSMState s) 
 | pretty_print_state | 
 [static]
 If jitter is globally enabled apply it to the time provided otherwise
 just return the input time.
     
| void  clear_all_timers () 
 | clear_all_timers | 
| void  start_connect_retry_timer () 
 | start_connect_retry_timer | 
| void  clear_connect_retry_timer () 
 | clear_connect_retry_timer | 
| void  restart_connect_retry_timer () 
 | restart_connect_retry_timer | 
| void  start_keepalive_timer () 
 | start_keepalive_timer | 
| void  clear_keepalive_timer () 
 | clear_keepalive_timer | 
| void  start_hold_timer () 
 | start_hold_timer | 
| void  clear_hold_timer () 
 | clear_hold_timer | 
| void  restart_hold_timer () 
 | restart_hold_timer | 
| void  start_stopped_timer () 
 | start_stopped_timer | 
| void  clear_stopped_timer () 
 | clear_stopped_timer | 
| void  start_idle_hold_timer () 
 | start_idle_hold_timer | 
| void  clear_idle_hold_timer () 
 | clear_idle_hold_timer | 
| bool  running_idle_hold_timer () 
 | running_idle_hold_timer | 
 [const]
Returns: true if the idle hold timer is running.
     
| void  start_delay_open_timer () 
 | start_delay_open_timer | 
| void  clear_delay_open_timer () 
 | clear_delay_open_timer | 
 [const]
| bool  is_connected () 
 | is_connected | 
 [const]
| bool  still_reading () 
 | still_reading | 
 [const]
 [const]
 [const]
 [const]
 send the netreachability message, return send result.
     
 [virtual]
| uint32_t  get_established_transitions () 
 | get_established_transitions | 
 [const]
| uint32_t  get_established_time () 
 | get_established_time | 
 [const]
| void  get_msg_stats (uint32_t& in_updates, 
		       uint32_t& out_updates, 
		       uint32_t& in_msgs, 
		       uint32_t& out_msgs, 
		       uint16_t& last_error, 
		       uint32_t& in_update_elapsed) 
 | get_msg_stats | 
 [const]
	
Generated by: pavlin on possum.icir.org on Wed Mar 21 11:23:48 2007, using kdoc $.