summaryrefslogtreecommitdiff
path: root/usr.sbin/ospfd
AgeCommit message (Collapse)Author
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@
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