summaryrefslogtreecommitdiff
path: root/usr.sbin/ospfd
AgeCommit message (Collapse)Author
2007-02-26Set the metric for loopback interfaces.Esben Norby
Fix by Dustin Lundquist - thank you very much. ok henning@
2007-02-25copy mis-aligned routing socket message into a properly aligned struct, soTheo de Raadt
that we can access it safely; ok claudio in the long term we must deal with the 32/64 bit issues of if_buadrate and friends
2007-02-24spelling; sthen@spacehopperTheo de Raadt
2007-02-12rde_nbr_loading() may be called with area == NULL. Check for this conditionClaudio Jeker
and scan all available areas in that case -- the only case when this may happen is for self announced AS-ext LSA. This solves a crash when redistributed routes were removed shortly after startup. OK norby@
2007-02-09Remove unneeded statement. The debug code needing it is long gone.Claudio Jeker
2007-02-01whitespace cleanup, no binary change.Claudio Jeker
2007-02-01If an interface is going down send out an empty OSPF hello packet so thatClaudio Jeker
all other routers will drop the session immediatly instead of waiting for the timeout that is normaly 40 sec. This reduces fail-over time massivly and does not hurt anymore since we are now able to reload the configuration on the fly. OK norby@ pyr@
2007-02-01Preliminary configuration reload support. Seems to work reasonably wellClaudio Jeker
after fixing many use-after-free errors a couple of days ago. Most cases -- adding/removing of interfaces, adding/removing of areas -- seem to work. Still merge_config() is a behemoth of a function and some edge cases may not be covered correctly (yet). OK norby@ pyr@
2007-02-01kr_reload() -- another helper function for reload support. This oneClaudio Jeker
takes care that redistribution is correct after reload. OK norby@ pyr@
2007-02-01There is no need to check if the LSA is matched by an net LSA inClaudio Jeker
rde_asext_put(). Just try to remove the as-ext LSA, if the prefix is announced as stub net LSA lsa_find() will fail later and nothing will happen. OK norby@ pyr@
2007-02-01Implement md_list_send() function to send auth crypt keys to the OSPF engine.Claudio Jeker
Needed for reload support. OK norby@ pyr@
2007-01-29Remove useless debug message when calculating the SPF tree.Esben Norby
ok claudio@
2007-01-29Do not link from the LS DB to outside structures that may vanish beforeClaudio Jeker
the actual LS DB entry is removed. In particular a neighbor may be removed at any time -- we were lucky because we kept down neighbors around for another 24h. Reload support unhided this problem again. Just copy the needed info into the vertex. Pointing to the area is save as the vertex is part of the area itself and removed when the area is removed. OK norby@
2007-01-24When deleting a neighbor or a interface make sure that no events are pending.Claudio Jeker
Needed for reload support. OK norby@
2007-01-24Remove most of the spf calculation related log_debug messages.Claudio Jeker
2007-01-24Remove some log_debug()s that are no longer needed.Claudio Jeker
2007-01-23Typo in fatal() message found by dunceor @ gmail dot comClaudio Jeker
2007-01-20Ignore SIGPIPE in the parent and RDE as well.Claudio Jeker
2007-01-14typoMichele Marchetto
metricr -> metric
2007-01-11Silently ignore unknown neighbors in the rde and ospfe imsg handler. ThisClaudio Jeker
is needed for upcomming reload support -- it can happen that a message to a just deleted neighbor is still pending.
2007-01-11Join two lines.Claudio Jeker
2007-01-11Remove unneeded config stuff when booting up the RDE. This makes the reloadClaudio Jeker
handling a bit easier.
2007-01-08term 3 here can be dropped tooTheo de Raadt
2006-12-21Unbreak redistribute default and make it possible to specify a metric forClaudio Jeker
the default route as well. OK norby@, michele@
2006-12-21order variables by size/type.Claudio Jeker
2006-12-13Doh! I forgot the change from kroute to rroute in the deletion case.Claudio Jeker
Found by Armin Wolfermann
2006-12-13Correct funtion name in fatal message.Claudio Jeker
2006-12-08Fix a crash seen on busy area border routers. The problem was a NULLClaudio Jeker
dereference in rde_summary_update(). Even though we merge in the new LSA it may be suppressed because the remove happened less than 5 seconds ago. So the second lsa_find() is still unable to locate the LSA and in this case we may not access v->cost. Additionally only remove not yet deleted LSA in lsa_remove_invalid_sums(), removing already removed entries removes also the suppressed LSAs. Problem found and fix tested by Pierre-Yves Ritschard. OK norby@
2006-12-08Document redistribute set options. OK norby@Claudio Jeker
2006-12-08Document the interface:ip syntax and add some statements to the examplesClaudio Jeker
to make them useful. OK norby@
2006-12-07Make it possible to set the metric and LSA type for redistributed routes.Claudio Jeker
Mostly based on a diff by Pierre-Yves Ritschard (I just simplified the parser code). OK norby@
2006-11-28add additional link states to report the half duplex / full duplexReyk Floeter
state, if known by the driver. this is required to check the full duplex state without depending on the ifmedia ioctl which can't be called in the kernel without process context. ok henning@, brad@
2006-11-28mib we pass to sysctl when fetching the routing table has 7 entries now,Henning Brauer
not 6 any more (rtableid added). need to tell sysctl so.
2006-11-26repair missing DPADD requestsTheo de Raadt
2006-11-17Support for multiple networks on one interface. Until now only the mainClaudio Jeker
address of a interface could be used. Now it is possible to specify a interface more than once if multiple networks are configured. An alternative network can be specified via e.g. interface em0:10.0.5.1. The old interface syntax without the IP still works and uses the main/first configured IP address. ospfd now needs to include the IP header on outgoing messages as it is not possible to specifiy the source address in sendto(2). Additionally all multicast joins and leaves have to be tracked. OK norby@
2006-11-16ignore routing messages for alternate tables for now, from bgpdHenning Brauer
2006-11-09Properly indicate the state of "fib-update"Joel Knight
ok claudio@
2006-11-01Fix copy pasto, use SIGCHLD for the sigchild handler not SIGINT twice.Claudio Jeker
Spotted by janus <at> errornet.de
2006-10-29Allow braces to fit on a single line if only one or no argument is used.Claudio Jeker
This allows construct like these: area 0.0.0.1 { interface lo0 interface em1 { passive } } From Pierre-Yves Ritschard
2006-10-25Remove a parser debug functionality that was never used in ospfd.Claudio Jeker
From Pierre-Yves Ritschard
2006-10-25Use strtonum(3) instead of the hand made atoul. This solves an issue withClaudio Jeker
possible integer truncation because of the use of u_longs and u_int32_t in the code. Initial diff by Pierre-Yves Ritschard but slightly modified version commited.
2006-09-27Use IP_RECVIF to get the incomming interface of OSPF packets. Now we useClaudio Jeker
the source address and the interface index to find the corresponding struct interface which is less error prone. OK norby@
2006-09-26Sync in_cksum.c to the same version dvmrpd has. This fixes problems with oddClaudio Jeker
packet lenght even though ospfd does not produce such packets. OK norby@
2006-08-31knock out the cpp/m4 stuff from MACROS; after discussion with many...Jason McIntyre
2006-08-30Remove useless logging, the logged event happens all the time, no need toEsben Norby
spam the logs. ok claudio@ deraadt@
2006-08-28use Forwarding Information Base vs. Forward Information Base;Kevin Steves
ok jmc@ claudio@
2006-08-28.Xr sysctl 8; wording from jmc@Kevin Steves
2006-08-28tiny grammar fix; ok jmc@Kevin Steves
2006-08-18Correctly leave the all AllDRouters group (224.0.0.6) if the interface wasClaudio Jeker
in state DR or BACKUP. Found while analizing PR5192 with norby@ -- seems to help but there is still a issue left. OK norby@
2006-08-06Remove a XXX in a comment.Claudio Jeker