summaryrefslogtreecommitdiff
path: root/usr.sbin/ospfd
AgeCommit message (Collapse)Author
2008-06-13Simplify ROUNDUP() macro, it does not need the additional size argument.Claudio Jeker
That will be sizeof(long) no matter what.
2008-06-10Fix typo.Joel Sing
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@
2008-05-09insert/delete routes w/ prio RTP_OSPFHenning Brauer
2008-05-07OSPF uses the highest IP address, not the lowest.Joel Sing
hai norby@
2008-05-05Use rtm_hdrlen instead of the static header length. OK norby@Claudio Jeker
2008-03-24msg_controllen has to be CMSG_SPACE so that the kernel can account forTheo de Raadt
each cmsg_len (ie. msg_controllen = sum of CMSG_ALIGN(cmsg_len). This works now that kernel fd passing has been fixed to accept a bit of sloppiness because of this ABI repair. lots of discussion with kettenis
2008-03-15Repair more msg_controllen dealing with structures or arrays ofTheo de Raadt
descriptors; ok hshoexer, also looked at by kettenis and henning
2008-03-13Correct CMSG_SPACE and CMSG_LEN usage everywhere in the tree. Due toTheo de Raadt
an extensive discussion with otto, kettenis, millert, and hshoexer
2008-02-26Have popfile() also close the main config file,Marco Pfatschbacher
but only do the final popfile call after yyparse() is done. This also fixes config reload on SIGHUP for some daemons. Spotted by otto@. OK deraadt@
2008-02-22remove comma from type list, add missing semicolon for consistencySimon Bertrang
OK claudio@
2008-02-11Correct the output of several error and debug messages.Esben Norby
2008-02-11log_debug error messages report incorrect function namesEsben Norby
from Igor Zinovik
2008-01-31use a hyphen for "interface-specific" as a compound term. this isJason McIntyre
not a hard and fast rule (actually it's a form i abuse) but hostname.if.5 currently uses two conflicting forms and this keeps it consistent;
2008-01-31do not leak confd on malloc failure in control_accept()Henning Brauer
found by Igor Zinovik <zinovik@cs.karelia.ru>
2007-11-12Remove space/tab compression function from lgetc() and replaceMarco Pfatschbacher
it with a simple filter in the yylex() loop. The compression in lgetc() didn't happen for quoted strings, thus creating a regression when tabs were used in variables. Some testing by todd@ and pyr@ OK deraadt@
2007-10-25segement -> segment; from Denis DoroshenkoJason McIntyre
plus an article fix whilst here
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-17From ripd: Add missing RTM_VERSION checksClaudio Jeker
2007-10-16Use v->type insead of v->lsa->hdr.type. Idea came while looking at ospf6d.Claudio Jeker
OK norby@
2007-10-16Allow '=' to end a number in all lexers.Marco Pfatschbacher
Requested and OK deraadt@
2007-10-16in the lex... even inside quotes, a \ followed by space or tab shouldTheo de Raadt
expand to space or tab, and a \ followed by newline should be ignored (as a line continuation). compatible with the needs of hoststated (which has the most strict quoted string requirements), and ifstated (where one commonly does line continuations in strings). pointed out by mpf, discussed with pyr
2007-10-14Missing spaceClaudio Jeker
2007-10-14'syncronize' -> 'synchronize'. From Diego Casati.Kenneth R Westerback
2007-10-13superceed -> supersede; from Tamas TEVESZJason McIntyre
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-13Funny typo, it is fib not fip so adjust function name.Claudio Jeker
2007-10-11next step in the yylex unification: handle quoted strings in a nicer fashionTheo de Raadt
as found in hoststated, and make all the code diff as clean as possible. a few issues remain mostly surrounding include support, which will likely be added to more of the grammers soon. ok norby pyr, others
2007-10-11Bye bye global ospf options. OSPF options are per area (at least the oneClaudio Jeker
flag that we set). So introduce a area_ospf_options() function that will return the correct flags for each area. This makes stub area support a lot easier. OK norby@
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-11Do not overload nbr->options with the dd exchange bits. nbr->options is usedClaudio Jeker
by the hello protocol. Instead add a dd_more flag that is used together with (the renamed) dd_master flag. Tested and OK norby@
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@