class BGPPeer


 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods

Public Static Methods


Detailed Description

 BGPPeer (LocalData *ld, BGPPeerData *pd, SocketClient *sock, BGPMain *m)

BGPPeer

 ~BGPPeer ()

~BGPPeer

[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.

BGPPeerDataswap_peerdata (BGPPeerData *pd)

swap_peerdata

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

SocketClientswap_sockets (SocketClient *new_sock)

swap_sockets

XorpFd  get_sock ()

get_sock

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 (UpdatePacket& p)

event_recvupdate

void  event_recvnotify (const NotificationPacket& p)

event_recvnotify

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

FSMState  state ()

state

const char * pretty_print_state (FSMState s)

pretty_print_state

[static]

TimeVal  jitter (const TimeVal& t)

jitter

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

bool  get_message (BGPPacket::Status status, const uint8_t *buf, size_t len, SocketClient *socket_client)

get_message

PeerOutputState  send_message (const BGPPacket& p)

send_message

void  send_message_complete (SocketClient::Event, const uint8_t *buf)

send_message_complete

string  str ()

str

[const]

bool  is_connected ()

is_connected

[const]

bool  still_reading ()

still_reading

[const]

LocalData*  localdata ()

localdata

IPv4  id ()

id

[const]

BGPMain*  main ()

main

[const]

const BGPPeerData*  peerdata ()

peerdata

[const]

bool  ibgp ()

ibgp

[const]

bool  use_4byte_asnums ()

use_4byte_asnums

[const]

bool  we_use_4byte_asnums ()

we_use_4byte_asnums

[const]

bool  send_netreachability (const BGPUpdateAttrib &n)

send_netreachability

send the netreachability message, return send result.

PeerOutputState  send_update_message (const UpdatePacket& p)

send_update_message

[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 kobe.xorp.net on Wed Jan 7 19:11:04 2009, using kdoc 2.0a54+XORP.