summaryrefslogtreecommitdiff
path: root/usr.sbin/ospfd
AgeCommit message (Collapse)Author
2005-03-23remove now osolete comment, from a mail exchange withHenning Brauer
Alexander von Gernler <grunk@pestilenz.org>
2005-03-23grow receive buffer on the routing socket, from bgpdHenning Brauer
2005-03-23explicitely initialize opt, from bgpdHenning Brauer
2005-03-23ssize_t -> size_t, from ntpd, there from Alexander von GernlerHenning Brauer
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-03-17Fix an access after free. It is not allowed to use a RB_REMOVE inside of aClaudio Jeker
RB_FOREACH. OK norby@ deraadt@
2005-03-15Add control messages for the show fib commands.Claudio Jeker
OK norby@ deraadt@
2005-03-15First close() than unlink().Claudio Jeker
2005-03-14Add "show summary" to ospfctl.Esben Norby
ok claudio@ henning@
2005-03-14unlink() control socket in error path. Spotted by Theo at FOSDEM.Claudio Jeker
Was way too long in one of my trees.
2005-03-12Add "show rib" and "show rib detail" to ospfctl.Esben Norby
ok henning@
2005-03-12Small K&F.Esben Norby
ok henning@
2005-03-11Fix typo.Esben Norby
ok claudio@
2005-03-11move umask() song and dance closer around the bind, being more careful about ↵Theo de Raadt
errors; ok claudio
2005-03-11KNFHenning Brauer
2005-03-09memcpy/memmove correctness here as wellHenning Brauer
2005-03-08Remove no longer valid route entries.Esben Norby
ok claudio@
2005-03-07Track interface state (up/down) and media status. Simplify the code a bitClaudio Jeker
by using the kif/kroute info while allocating interfaces.
2005-03-02Calculate the nexthop correctly if the calculating router hasEsben Norby
Point-to-point links. ok claudio@
2005-02-27SPF and route table calculation.Esben Norby
Calculate Shortest Path Tree for each area known in the link state database. The Shortest Path Tree is used as input for route table calculation. Route tabled is calculated and the result is inserted into the kernel route table. ok claudio@
2005-02-24Remove the kroute nexthop specific code as there is no need for this inClaudio Jeker
ospfd. While there clean up some other no longer needed stuff. OK norby@
2005-02-19Originate P2P links correctly.Esben Norby
ok claudio@
2005-02-16Support point to point links.Esben Norby
ok claudio@
2005-02-15let ospfd "tag" its routes with RTF_PROTO2, bgpd uses RTF_PROTO1 alreadyHenning Brauer
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-09Fix premature ageing of self originating LSA. Still not perfect but betterClaudio Jeker
than before where it just failed to work.
2005-02-09mini KNFClaudio Jeker
2005-02-09NBR_STA_ACTIVE is just ~NBR_STA_DOWN instead of some hardcoded magic.Claudio Jeker
2005-02-09Use log_warnx() in lsa_check() to report bad LSA settings.Claudio Jeker
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-09Fix interface fsm by inserting dummy events and actions as placeholderClaudio Jeker
for 0. Action 0 was IF_ACT_STRT and that's why if_act_start() got called multiple times. The inappropriate hack from the previous commit is no longer needed.
2005-02-09Don't elect neighbors that are down and fix a stupid copy-pasto.Claudio Jeker
2005-02-09Initialize iface->self only once. if_act_start() may be called multipleClaudio Jeker
times for a interface.
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-09When sending out hellos, copy the bdr and dr addresses into iface->self.Claudio Jeker
Without this the election process causes strange results as a router that announces itself as dr/bdr is prefered over one that doesn't.
2005-02-09If the router self is the originator of the LS update flood it outClaudio Jeker
no matter what. This solves an issue where self originated updates where not flooded because the router was the DR.
2005-02-09Once again a round of bugfixes in the db exchange process. This isClaudio Jeker
one of the worst documented parts of the RFC. The initial packet sent by the slave may have no flags set. Don't enforce that the M bit is set but instead check that the I bit and MS bit are unset. The master should only issue NBR_EVT_XCHNG_DONE if it has sent at least one packet with M bit cleared else the slave may get stuck in state Exchange. In NBR_STA_LOAD the db_tx_timer() still needs to send db descriptions out. This will be the last packet sent with the cleared M bit.
2005-02-09Add buf_seek() as buf_reserve() fails if a buf_add()/buf_reserve() isClaudio Jeker
called afterwards as it may realloc() the buffer and so the returned pointer is bogus. Needed by the upcomming originate LSA code. OK henning@
2005-02-09Print the neighbor address and not the local interface address inClaudio Jeker
ospfctl show nei.
2005-02-08Change default metric to 10, reflects what is stated in ospfd.conf(5).Esben Norby
ok claudio@
2005-02-08The LSA seq_num should be unsigned as it is expected by ntohl/htonl() evenClaudio Jeker
though the seq_num needs to be compared as signed number. No idea how IETF came up with such a stupid idea especially because the seq_num is not allowed to wrap. requested by henning@ OK henning@
2005-02-07spelling fixesDavid Krause
2005-02-04Use log_warn() insteade of log_warnx() after sendto() and if_set_mcast()Claudio Jeker
errors as errno was set by the call.
2005-02-04Add sanity checks for AS-external LSA. Refine some other checks to be asClaudio Jeker
strict as possible. OK norby@
2005-02-03add ospfd.conf.5 to SEE ALSO;Jason McIntyre
2005-02-03no need for -compact/.Pp in these lists;Jason McIntyre