summaryrefslogtreecommitdiff
path: root/usr.sbin/ospfd/ospfd.c
AgeCommit message (Collapse)Author
2008-05-12Error out with usage line if additional arguments are given after thePierre-Yves Ritschard
option parsing. Found out the hard way by jdixon on ifstated. ok sobrado@, jdixon@, millert@
2007-10-25Add -D makro=value as well so that all routing daemons are in sync.Claudio Jeker
OK norby@
2007-10-20forgot about ospfd in last commit.Pierre-Yves Ritschard
ok hennin@ too.
2007-10-14Missing spaceClaudio Jeker
2007-10-13in all these programs using the same pfctl-derived parse.y, re-unify theTheo de Raadt
yylex implementation and the code which interacts with yylex. this also brings the future potential for include support to all of the parsers. in the future please do not silly modifications to one of these files without checking if you are de-unifying the code. checked by developers in all these areas.
2007-10-11Don't check for OSPF_OPTION_E in the parent. OSPF_OPTION_E is per area andClaudio Jeker
so the parent process has no way to know if it should redistribute or not. Let the RDE decide. OK norby@
2007-10-01fix alot of whitespace problems...Esben Norby
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-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-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-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-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-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-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-02-01whitespace cleanup, no binary change.Claudio Jeker
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-01-20Ignore SIGPIPE in the parent and RDE as well.Claudio Jeker
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-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-01Fix copy pasto, use SIGCHLD for the sigchild handler not SIGINT twice.Claudio Jeker
Spotted by janus <at> errornet.de
2006-08-06There is no need to initialize the log framework twice. Especially becauseClaudio Jeker
between the two calls no logging can happen.
2006-07-03Add missing breaks and suddenly all starts to make sense again. WonderedClaudio Jeker
why one of my boxes started to redistribute all my bgpd routes into ospf.
2006-05-31More redistribute fun. Add a possibility to deny redistribution of specifiedClaudio Jeker
routes via "no redistribute rtlabel admin". Redistribute rules are parsed in order and the first match is used. Only exception is "redistribute default" Which is independent of the other rules and can't be negated.
2006-05-30Now that rtlabels are accessable via sysctl we can use route lables toClaudio Jeker
define which routes should be redistributed via OSPF. So now you can define the export list on a fine graded basis. More to come... OK norby@
2006-03-27More specific warning.Claudio Jeker
2006-03-25Highlight that running an OSPF router without forwarding enabled isEsben Norby
very damaging to the network. ok claudio@
2006-03-14Kill unneeded util.h include.Claudio Jeker
2006-03-08Cleanup with lint. Kill unused variable and fix some types.Claudio Jeker
2006-02-10ospfd does not need fd passing via the imsg framework so remove that codeClaudio Jeker
and remove other unneeded functions that are only used in bgpd.
2006-01-12Rewrite the redistribute code. The previous implementation was stupid andClaudio Jeker
resulted in a major bottleneck if bgpd was used on the same box -- not clever to do linear searches over 175k entries :(. This now moves the redistribute code back into kroute duty and kills the linear list. Also default routes are now redistributed without the need for a kernel default route. OK norby@
2005-12-29More correct cleanup on exit. OK norby@Claudio Jeker
2005-10-18Cleanup interface code a minimal bit. There is no need for if_shutdown(),Claudio Jeker
especially it got called in the wrong place. OK norby@
2005-08-15Fix possible race condition in signal handler.Esben Norby
Report and fix from Micheal Knudsen. Prep, test and OK claudio@
2005-06-21The ev_sighup event handler should handle SIGHUP and not SIGTERM.Claudio Jeker
SIGTERM is already handled by ev_sigterm.
2005-05-26Cleanup.Esben Norby
2005-05-26Support dumping the configuration the way bgpd(8) does it.Esben Norby
This makes it possible to have ospfd(8) parse a configuration file and display the parsed result. ok claudio@
2005-05-23useless use of endpwentHenning Brauer
2005-04-25Call if_init() in ospfe only, neither the rde nor the parent need it.Claudio Jeker
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-03-26explciitely 0-initialize pidsHenning Brauer
2005-03-26Prototypes where moved to ospfd.h so no need to keep them here.Claudio Jeker
2005-03-26Implement the IMSG_CTL_IFINFO bits correctly. This is needed forClaudio Jeker
"ospfctl show fib interface". OK henning@ norby@
2005-03-26fix a little race on SIGCHLD where we must delay the claenup untilHenning Brauer
we invalidated all child pids in case both were killed in a very short time, spotted by and diff from Michael Knudsen <e@molioner.dk>, claudio ok
2005-03-25what is an ospfe engine?Henning Brauer
2005-03-25extra char in getopt string, Michael Knudsen <e@molioner.dk>Henning Brauer
2005-03-15Add control messages for the show fib commands.Claudio Jeker
OK norby@ deraadt@
2005-03-08Remove no longer valid route entries.Esben Norby
ok claudio@