summaryrefslogtreecommitdiff
path: root/usr.sbin/ospfd
AgeCommit message (Collapse)Author
2007-10-01fix alot of whitespace problems...Esben Norby
2007-09-30When printing the config always include the interface IP address.Claudio Jeker
Without this multiple networks on one interface could not be distinguished. OK norby@
2007-09-28spacesClaudio Jeker
2007-09-28Cleanup some #includes plus some minor other cleanup. OK norby@Claudio Jeker
2007-09-25Last missing piece in the equal cost multipath support for ospfd.Claudio Jeker
Send all possible nexthops to the parent process and correctly sync the RIB, FIB and kernel routing table. Based on initial work by pyr@. OK pyr@ norby@ PS: don't forget that you need to enable multipath support via a sysctl
2007-09-18Correctly track the E-bit of router LSA on config reloads. If redistributionClaudio Jeker
is turned on or off the E-bit needs to be toggled accordingly else the AS-external LSA are ignored by the other OSPF routers. OK norby@
2007-09-16Change the way nexthops are calculated on the root level. Instead of lookingClaudio Jeker
from the target back and trying to figure the nexthop out, the link is searched in the interface list and the info from the matiching interface is used. This should solve the nexthop issues with setups having multiple point-to-point links between two routers as reported on misc@ some time ago. tested and OK norby@
2007-09-15[fF]uther -> [fF]urther in comments and man page. First one spotted onKenneth R Westerback
tech@ by Jung.
2007-09-12Another parser.y that switches to parse numbers directly in the lexer.Claudio Jeker
Most complex part was "redistribute 10/8" which need special handling. With and OK deraadt@, OK norby@
2007-09-12tweak previous;Jason McIntyre
2007-09-11Switch some more baudrates to 64 bit and initialize iface->baudrate.Claudio Jeker
2007-09-11Improve the ospfd(8) manpage.Esben Norby
Hooray! claudio@
2007-08-06Fix two issues in the RIB calculation. First rt_nexthop_add() should notClaudio Jeker
return from the inner loop if the outer loop is not finished -- just break the inner loop and continue the outside one. In rt_update() nexthops should not be cleared and freed if the new route is better. This resulted in reset RIB timers after any calculation run. Instead just mark the nexthop invalid and go on. Tested and OK pyr@
2007-07-25Don't fatal if the imsg pipe is closed, this is often triggered in the parentClaudio Jeker
and hides the real cause of the termination. OK norby@, reyk@, pyr@
2007-07-24make imsg_create use dynamic buffers.Pierre-Yves Ritschard
this does not change imsg_compose's behavior but allows the message's buffer to grow and will avoid sending a ton of small messages when unrolling lists between two processes. this is needed for sending multiple routes at once when updating the fib with multipath routes. discussed and ok claudio@
2007-07-23when multipath routes exist, display them in ospfctl sh fib output.Pierre-Yves Ritschard
ok claudio@
2007-07-11make the demote count argument optional as advertised in the man page.Pierre-Yves Ritschard
2007-06-19add support for mapping route labels to AS-external route tags.Reyk Floeter
manpage bits from jmc@ ok norby@ claudio@
2007-06-19Allow ospfd reconfiguration through SIGHUP, add SIGHUP handlers inPierre-Yves Ritschard
children like in bgpd so that ``pkill -1 ospfd'' works as expected. ok claudio@
2007-06-13NBR_ACT_HELLO_CHK was missing in the nbr_action_names list.Claudio Jeker
2007-06-13Don't RB_REMOVE() vertices in area_del() this will be done by vertex_free().Claudio Jeker
With this the RDE no longer crashes on shutdown.
2007-06-13Ingnore updates that did not change the route. This enhances the signal toClaudio Jeker
nois ratio on the routing socket. OK norby@ reyk@
2007-06-12When calculating as_ext routes only respect the connected flag for rt_nodesClaudio Jeker
with d_type DT_NET. Without this directly connected DT_RTRs use the wrong nexthop and fail to install the as_ext route because the nexthop is not directly reachable.
2007-06-12When removeing as-ext LSA initialise the metric to some sane default elseClaudio Jeker
the ospfd on the other side is dropping the packets because the sanity check fails.
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-31Document demotion counters. With help from jmc@Claudio Jeker
2007-05-31automaticaly -> automaticallyJason McIntyre
2007-05-29Demote support for ospfd. It is possible to specify a demote group onClaudio Jeker
interfaces and areas. With this carp setups using ospfd are more reliable because we can fail over if the OSPF connectivity is (partially) lost. OK norby@
2007-05-22Rework the way how ospfd fetches and tracks interfaces. Try to merge theClaudio Jeker
code which is very similar and especially include RTM_NEWADDR in dispatch_rtmsg(). With this newly created interfaces will no longer cause config reload problems. OK norby@
2007-05-10transposition; ok jmc@Kevin Steves
2007-04-19Use iovecs to write routing messages to the socket instead of a staticClaudio Jeker
structure. This gives greater flexibility and solves an upcoming problem with multipath routes. OK norby@
2007-04-12Before starting to evaluate the redistributon of a route it helps to setClaudio Jeker
the metric to the highest and least preferred possible value else no routes are redistributed. OK norby@
2007-04-11Simplify rde_summary_update(). The route entry has a valid/invalid flagClaudio Jeker
so there is no need to loop over the nexthops and we no longer need to pass the rt_nexthop to the summary LSA generation (a flag is enough). OK norby@ pyr@
2007-04-10Next step in equal cost multipath support. Make the SPF calculation multipathClaudio Jeker
aware. Both the SPF and RIB trees need additional structures to store the multiple nexthops to the destination but only the first active nexthop is passed to the parent process and used for routing. This is the next thing that needs to be modified. Tested and OK pyr@
2007-04-05remove an unused function.Pierre-Yves Ritschard
ok claudio@
2007-04-04Type 4 (router) summery LSA need to be sent out with an LS ID equal to theClaudio Jeker
ASBR router ID. Using the avertising router for this only works for intra- area routes but fails horribly for inter-area ones. Luckily RIB router entries use the router ID as prefix so just use that instead -- this simplifies the code nicly. Figured out the hardway by pyr@. Tested and OK pyr@
2007-04-04There is no need to originate inter-area routes to the backbone.Claudio Jeker
Inter-area routes are already comming from the backbone so readding them is wrong. OK norby@
2007-04-02Use fatal() if calloc fails instead of fatalx().Claudio Jeker
2007-03-30Use correct function name in fatalx() message.Claudio Jeker
2007-03-28Remove unused variable found by lint.Claudio Jeker
2007-03-27First step to make ospfd equal cost multipath aware.Claudio Jeker
Change kroute.c code so that it correctly tracks multipath routes. Route redistribution is way more complex in a mulitpath environment. It is not possible to redistribute multiple pathes and only a part of the multipath routes may be redistributable. So a route is redistributed as soon as one of the multipath routes is redistributable. Tested and OK norby@ and pyr@ -- at least we see no regression
2007-03-25If the interface metric changes on reload it is necessary to re-originateClaudio Jeker
the router LSA so that the change propagates instantly. Call orig_rtr_lsa() in merge_config() if a interface in an area changes. Do it as late as possible to reduce the amount of updates generated by a config reload. Found and tested by Stuart Henderson. OK norby@
2007-03-22s/%ssredistribute/%sredistribute/. One s is enough and makes -nv outputClaudio Jeker
a valid config file again.
2007-03-22Somehow I forgot how to correctly sort in alphabetical order.Claudio Jeker
"router" needs to be added before "router-dead-time". Figured out by Stuart Henderson
2007-03-21tweak a sentence;Jason McIntyre
2007-03-21Add RFC 3137 and remove the caveats section. Ospfd will now automaticalyClaudio Jeker
switch to "stub router yes" if the forwarding sysctl is set to something differently than 1. This can be overruled by a later "stub router no" in ospfd.conf. More work is needed here. OK norby@
2007-03-21Document "stub router (yes|no)" and how/why it is used.Claudio Jeker
Also modify the fib-update block a bit because "fib-update no" implies "stub router yes". OK norby@
2007-03-21Add support for RFC 3137: OSPF Stub Router AdvertisementClaudio Jeker
This allows ospfd to announce networks without the need to transit traffic. stub router is enabled if the fib is not coupled, net.inet.ip.forwarding is not 1 or if the stub router global config option is set to yes. OK norby@
2007-03-19when our red/recv/recvmsg in imsg_read gives EINTR or EAGAIN, do notHenning Brauer
signal "connection closed" upstream. spotted by Valentin Kozamernik <tin@komna.com>
2007-03-17Exchange a strlcpy() with a strncpy(). A similar change was done in parse.yClaudio Jeker
some time ago. The simple password needs to be nul extended and is allowed to fill the full buffer the perfect job for stncpy(). Found and tested by Jon Morby.