[Xorp-cvs] XORP cvs commit: xorp/ospf

Atanu Ghosh atanu@icir.org
Sat, 27 Aug 2005 22:17:41 GMT


CVSROOT:	/usr/local/www/data/cvs
Module name:	xorp
Changes by:	atanu@xorpc.icir.org	2005-08-27 22:17:41 UTC

XORP CVS repository


Modified files:
	ospf          peer.cc 

Log message:
	The DR election had become broken. In a neighbour get_candidate_id()
	returns the neighbours router ID or interface ID as a function of
	protocol and linktype. In a peer get_candidate_id() returns the
	routers own ID. In event_hello_recived() _peer.get_candidate_id() had
	been incorrectly switched to get_candidate_id().
	
	In event_hello_received() the DR and BDR would be recomputed when the
	first hello packet was recieved from a neighbour instead of the first
	time the state goes to TwoWay.
	
	Previously event_wait_timer() called event_backup_seen() copied the
	code from event_backup_seen() into event_wait_timer() so as not to be
	confused by the debugging output.
	
	When retransmitting an LSA don't update the age if its already at
	MaxAge.

Revision  Changes                                Path
1.128     +39 -8;  commitid: 101d54310e6837ea6;  xorp/ospf/peer.cc