summaryrefslogtreecommitdiff
path: root/usr.sbin/ospfd
AgeCommit message (Collapse)Author
2005-05-25spellingDavid Krause
2005-05-24Only redistribute networks if the interface they depend on is actuallyClaudio Jeker
up and running. This makes redistribution of carp(4)-ed networks magically work. OK norby@
2005-05-24Set ifindex for all kernel routes. This makes it very easy to track theClaudio Jeker
state of static prefixes. OK norby@
2005-05-24An lsa with age == MAX_AGE is always different and needs to be merged.Claudio Jeker
This solves a bug that made it impossible to remove a LSA by premature aging. OK norby@
2005-05-24Fix format string.Claudio Jeker
2005-05-24Be more specific on what we redistribute. OK norby@Claudio Jeker
2005-05-24In lsa_merge() check if the LSA changed. If it did not change just free theClaudio Jeker
new one and use the old one. This will reduce the amount of updates sent. OK norby@
2005-05-24Fix some obvious issues in the summary LSA origination.Claudio Jeker
Actually remove summary LSA if the LSA they refer to are no longer valid. Set correct cost on the summary LSA. Announce type 4 summary LSA. OK norby@
2005-05-23First part of summary LSA origination. Not perfect but a start.Claudio Jeker
OK norby@
2005-05-23useless use of endpwentHenning Brauer
2005-05-23Kill rt_dump_debug stuff as "ospfctl show rib [detail]" provides the sameEsben Norby
information. ok claudio@
2005-05-23Make the rfc1583compat flag changable in ospfd.conf(5).Esben Norby
ok claudio@
2005-05-22Handle cost2 for AS-external, and prepare for handling flags inEsben Norby
ospfctl show rib detail. ok claudio@
2005-05-22The Route Information Base for AS-External should only be dumped once.Esben Norby
ok claudio@
2005-05-13Cost type 2 will be needed soon.Esben Norby
ok claudio@
2005-05-13The NET_RT_IFLIST sysctl returns RTM_IFINFO and RTM_NEWADDR messages inClaudio Jeker
the buffer. While RTM_IFINFO starts with a struct if_msghdr RTM_NEWADDR does not. In other words (struct sockaddr *)(next + sizeof(ifm)) is only correct for RTM_IFINFO and not for RTM_NEWADDR. So move the ifm_type check up else get_rtaddrs() would access memory outside of buf. OK henning@
2005-05-12Calculate routes for summary and as-external LSA. Still some minor partsClaudio Jeker
missing but good enough to be used. Tested and some input by Stephen Marley. OK norby@
2005-05-12lsa_age() the vertex befor comparing the age with MAX_AGE.Claudio Jeker
Move a common check (cost == LS_INFINITY) out of the switch cases. OK norby@
2005-05-12Every time a LSA is returned from a lookup lsa_age() it.Claudio Jeker
Also move the lsa_age() prototype to rde.h so that we can access it from the SPF code. OK norby@
2005-05-12Don't fatal in case no root node was found for spf calculation.Claudio Jeker
The area may be empty because there is no active interface. OK norby@
2005-05-12Add "show database asbr/external/network/router/self-originate/summary"Esben Norby
to ospfctl. Show detailed information about the LSAs in the Link State Database. ok claudio@
2005-05-12Fix multiple bugs in if_act_elect(). In some cases DR were set wronglyClaudio Jeker
because of a stupid typo that I fixed in rev. 1.6 but forgot to fix the bug I introduced before because of that typo. Also reset the DR/BDR fields of iface->self when going to round two. Without the reset it is e.g. not possible to drop from DR to BDR. Issue found and patch tested by Stephen Marley OK 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-11Add some newlines to make the code easier to follow. No functional change.Claudio Jeker
2005-05-10Do no longer force the default router priority to 0.Claudio Jeker
Ospfd can be used as DR or BDR since quite some time so there is no need to make ospfd ineligible as DR or BDR.
2005-05-09Force all as-external routes to point to the router announcing them byClaudio Jeker
setting the forward address to 0.0.0.0. This is needed as we currently fail to check if the real nexthop is covered by an ospf route -- uncovered routes are ignored by the other routers. OK norby@ tested and requested by Philip Olsson
2005-05-08Keep track of the req list in the RDE. The RFC requires us to check forClaudio Jeker
silly updates while fetching the table from the other server. OK norby@
2005-05-05Fix a stupid typo in the #if 0 block in spf_calc() and start using that codeClaudio Jeker
block. The idea is to ignore nodes that are already part of the SPF tree as soon as possible. OK norby@
2005-05-02use setres[ug]id for privilege dropping; ok norby@Damien Miller
2005-05-01spellingDavid Krause
2005-04-27Sort struct msgbuf by size. From Alexander von Gernler via henning@Claudio Jeker
2005-04-26unify shared code a bit again to make future syncs easierHenning Brauer
From: Alexander von Gernler <grunk@pestilenz.org>
2005-04-25Call if_init() later and for each interface separately.Claudio Jeker
Move code from if_act_start() to if_init() that needs to be called only once per interface. Especially event_set should be called only once as it initializes struct event and so may cause corruption of the event queue if called twice.
2005-04-25Move the creation of the ospf_socket from if_init() directly into ospfe().Claudio Jeker
This makes it possible to call if_init() at a much later time.
2005-04-25Call if_init() in ospfe only, neither the rde nor the parent need it.Claudio Jeker
2005-04-25Change order of execution in if_act_reset(). First notify all neighborClaudio Jeker
that the interface gets reset (NBR_EVT_KILL_NBR) and than clear all timers of the interface. The nbr_fsm() may start some of the timers which has strange results. Tested by Philip Olsson.
2005-04-22RFC tells that the MTU in the db exchange packet may not be bigger thanClaudio Jeker
the interface MTU but it may be smaller. This makes Philip Olssons extreme networks summit24 happy as this stupid thing sets the MTU to 0. testing Philip Olsson, OK norby@
2005-04-19Don't call event_set() before event_init().Claudio Jeker
OK norby@
2005-04-17Use fatalx() instead of ospfd_shutdown() if kr_init() fails.Claudio Jeker
OK henning@
2005-04-16Set F_STATIC flag earlier else the default route will end up as non-static.Claudio Jeker
2005-04-14Some format string cleanup. OK deraadtChad Loder
2005-04-12spellingTheo de Raadt
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-04-12spacesClaudio Jeker
2005-04-06Add check for key lengths. Based on diff from Jason Ackley.Esben Norby
Reworked by me. ok claudio@
2005-04-06When deleting LSA because they hit max age (IMSG_LS_MAXAGE) check if theClaudio Jeker
current LSA in the database was updated while max age LSA was flooded out. This solves a reace condition where self originated LSA got removed because an other server sent an update with age set to MAXAGE. OK norby@
2005-04-05Use the dynamic buffer API for packet generation and sending.Claudio Jeker
OK norby@
2005-04-05Set errno in case buf_realloc() fails because the limit of the buffer isClaudio Jeker
reached.
2005-04-04On auth crypt verify not only the main key is allowed but all configured keys.Claudio Jeker
This makes changing keys a piece of cake -- if ospfd would support reloads. Found and patch from Jason Ackley.
2005-03-31Better crypt sequence number initialization.Esben Norby
Suggested by henning@ ok henning@