summaryrefslogtreecommitdiff
path: root/usr.sbin/ospfd
AgeCommit message (Collapse)Author
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.
2007-03-16Don't forget to set the metric in the REDIST_LABEL case. OK pyr@Claudio Jeker
2007-03-16Make sure that the metric on redistributed prefixes is always != 0.Claudio Jeker
If no metric was specified for it to DEFAULT_REDIST_METRIC. While this was checked for the simple case it was not done if only a metric type was specified. OK pyr@
2007-03-13Don't call rtlabel_unref() twice on RTM_DELETE. kroute_remove() does itClaudio Jeker
so don't unref before calling kroute_remove() or we end up with wrong reference counts.
2007-03-13rtm_tableid is only valid for RTM_ADD, RTM_CHANGE and RTM_DELETE but notClaudio Jeker
for stuff like RTM_IFINFO or RTM_IFANNOUNCE. So move check to a save location. Always check rtm_type before accessing some random value inside the route message.
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@