summaryrefslogtreecommitdiff
path: root/usr.sbin/ospfd/neighbor.c
AgeCommit message (Collapse)Author
2007-01-24When deleting a neighbor or a interface make sure that no events are pending.Claudio Jeker
Needed for reload support. OK norby@
2006-08-06Remove a XXX in a comment.Claudio Jeker
2006-03-13The return value of the start/stop timer functions is almost never checked.Claudio Jeker
Switch them to void functions and check if evtimer_add/del fails -- in which case we fatal() as there is no useful way to recover in such an event. OK norby@
2006-03-09Move *_name functions to log.c and use these for both ospfd and ospfctl.Claudio Jeker
Stuff that is only used in ospfd debug messages is simplified. OK norby@
2006-02-19Keep track of the duration of our relationships with neighbors.Esben Norby
Displayed in "ospfctl show neighbor". ok claudio@
2006-02-19Do not kick the adj_timer for neighbors that are in state 2-Way.Esben Norby
ok claudio@
2006-02-19Do not traverse the entire LS retransmission list to figure out how manyEsben Norby
are present on it. ok claudio@
2006-02-09Prevent the neighbor FSM from getting stuck forever in state EXSTART.Esben Norby
ok claudio@
2005-12-15Simpify iface_del() and nbr_del(). make them void funtions as they can not failClaudio Jeker
and do not remove a element twice in iface_del(). OK norby@
2005-10-19Add neighbor ID in warning and use correct function names.Claudio Jeker
2005-09-29Show the time a neighbor was DOWN instead of counting down fromClaudio Jeker
DEFAULT_NBR_TMOUT. Makes it easy to see since when a peer is dead. OK norby@ some time ago
2005-06-13simplify the fsm by moving all the checks that are done if the state changedClaudio Jeker
into one if (old_state != nbr->state) { block. OK norby@
2005-05-27When the neighbor at the other end of the virtual link goes to stateEsben Norby
full, originate a new router LSA. ok claudio@
2005-05-27Clearify.Esben Norby
2005-05-26Remove unused event/action caption.Esben Norby
2005-05-26Remove unused neighbor state.Esben Norby
ok claudio@
2005-05-26Remove unneeded debug stuff when handling neighbors.Esben Norby
2005-05-12If activly connected to more than one area set B flag in the self-originatedClaudio Jeker
router LSA. To do that correctly we need to track the number of active neighbors for each area. If the routers ABR status changes all router LSA need to be updated via orig_rtr_lsa_all(). OK norby@
2005-05-01spellingDavid Krause
2005-04-12Support for self originated AS-external LSA.Claudio Jeker
With "redistribute (static|connected|default|none)" it is possible to tell ospfd which external routes should be announced. Connected routes will be announced only if there is no corresponding interface configured, in that case the prefix is not external. Adding and removing of announced prefixes are done automaticaly. OK norby@
2005-03-31Add support for crypt authentication (MD5).Esben Norby
ok and input claudio@
2005-03-22Remove bool cruft.Esben Norby
ok claudio@
2005-03-17Handle the retransmission queues correctly. Mainly iface state DROTHERClaudio Jeker
needs to be handled specially because the backup DR does not send acks and so his retransmission queue fills up and does not get cleared. Also implement the retransmission timeout correctly. OK henning@ norby@ deraadt@
2005-02-10Work around a timing issue in the db exchange phase. The DB descriptionClaudio Jeker
packets comming from the net are looped through the RDE and may get delayed because of this. The result is that the neighbor FSM ends in state FULL instead of LOADING and so the LSDB is not correctly synchronized. Issue found by norby@ OK norby@
2005-02-10Cleanup the neighbor FSM. Use log_warnx() where appropriate and don'tClaudio Jeker
use the correct enum instead of 0 in the nbr_fsm_tbl.
2005-02-09Rework of self originated LSA. First of all the code to generate the LSAClaudio Jeker
is rewritten to use the dynamic buffer api introduced lately. Add missing parts in the RDE to merge these LSA originated from the OE into the LSDB with correct seq_num, etc. Add hooks to the neighbor and interface fsm so that the LSA get updated if needed. This is not perfect, still many things are missing. OK norby@
2005-02-09Print the interface state from the view of the neighbor in ospfctl sh nei.Claudio Jeker
The idea is to print DR, BDR or DROther dependent on the type of the neighbor. This is only done for multicast capable networks.
2005-02-09Prevent the ADJ_TMOUT from complaining about an unexpected event.Claudio Jeker
From norby@
2005-02-09Fix the restart DD case. In case of a timeout recheck the adjacency and goClaudio Jeker
to state NBR_STA_XSTRT and issue a new initial DB description packet or go to NBR_STA_2_WAY respectivly. OK norby@
2005-02-09Print the neighbor address and not the local interface address inClaudio Jeker
ospfctl show nei.
2005-02-02KNFHenning Brauer
2005-02-01Free neighbors that have been inactive for 24hrs.Esben Norby
OK claudio@
2005-01-28Change my email address to the OpenBSD one since Ericsson has nothing toEsben Norby
do with this software, just happend to be my only valid email address at the time.
2005-01-28Welcome ospfdClaudio Jeker
started by Esben Norby some time ago by using the imsg/three process framework of bgpd. He implemented the basic concept plus the ospf finite state machines. Later I joined and helped him cleanup, debug and extend his work. Right now it is not particularly useful, major parts are still missing but is imported to allow more people to work on it. status: The basic protocol works for broadcast networks and the LS database is synchronized and updated. It is not possible to be DR or BDR on a network and other interface types like point-to-point are not yet supported. The shortest path tree is not calculated and so no routing information is exchanged with the kernel FIB. Not yet connected to the builds. OK henning@