summaryrefslogtreecommitdiff
path: root/usr.sbin/ospfd/parse.y
AgeCommit message (Collapse)Author
2013-03-06sync yyerror() with version in bgpd so that it logs to syslog when daemonized.Stuart Henderson
ok florian@
2010-12-13Do not use a carp address as ospf router id because it is not unique.Alexander Bluhm
ok claudio@
2010-08-03fix linecount bug with comments spanning multiple linesHenning Brauer
problem reported with the obvious fix for bgpd by Sebastian Benoit <benoit-lists at fb12.de>, also PR 6432 applied to all the others by yours truly. ok theo isn't it amazing how far this parser (and more) spread?
2010-03-24options must be sorted.Joerg Goltermann
OK: henning@, claudio@
2010-02-16implement support for fast hello packets.David Gwynne
if route-dead-time is set to "minimal" (rather than a number of seconds), the dead time is set to 1 second and hellos are sent at the interval specified by fast-hello-interval in msecs. this is non standard wrt to the ospf rfc, but it does interoperate with at least one other router vendor. this allows much better responsiveness to l3 topology changes than the standard intervals allow. if i yank a cable to one of my upstreams, the routes adjust in a second rather than the default of 40 i was running with before. the users dont even notice something changed. developed while working with joshua atterbury. ok claudio@ as part of a larger diff. dedicated to zan rowe who thinks she is a bigger nerd than me.
2010-02-16allow spf-delay and spf-holdtime to be specified in msec so ospfd canDavid Gwynne
better respond to rapid topology changes. developed while working with joshua atterbury ok claudio@ as part of a larger diff.
2009-11-25add support for includeDavid Gwynne
ok claudio@
2009-06-05Preliminary rdomain support, all hacked up by reyk@Claudio Jeker
2009-03-31Fixed memory leaks which would occur if the second of two memoryTobias Stoeckmann
allocations fails. looks right deraadt, krw ok henning
2009-01-26First convert IP addresses to host-byte-order before checking which one isClaudio Jeker
smaller. Additionally fix the check to find the lowest configured IP as suggested by the RFC. Found with stsp@
2009-01-07Full stub area support. This allows ABRs to announce a default networkClaudio Jeker
summary LSA into stub areas so that these routers are able to reach the outside of the area. OK norby@
2008-11-24Initial support for stub areas. The bit still missing is the redistributionClaudio Jeker
of the default summary net lsa on ABRs but that is comming. OK norby@
2008-10-17bring in the findeol() fix from pfctl. list of affected parsers by sthenHenning Brauer
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@
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-20forgot about ospfd in last commit.Pierre-Yves Ritschard
ok hennin@ too.
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-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-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-01fix alot of whitespace problems...Esben Norby
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-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-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-28Remove unused variable found by lint.Claudio Jeker
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-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-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-02-01whitespace cleanup, no binary change.Claudio Jeker
2007-01-14typoMichele Marchetto
metricr -> metric
2007-01-11Join two lines.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-17Support for multiple networks on one interface. Until now only the mainClaudio Jeker
address of a interface could be used. Now it is possible to specify a interface more than once if multiple networks are configured. An alternative network can be specified via e.g. interface em0:10.0.5.1. The old interface syntax without the IP still works and uses the main/first configured IP address. ospfd now needs to include the IP header on outgoing messages as it is not possible to specifiy the source address in sendto(2). Additionally all multicast joins and leaves have to be tracked. OK norby@
2006-10-29Allow braces to fit on a single line if only one or no argument is used.Claudio Jeker
This allows construct like these: area 0.0.0.1 { interface lo0 interface em1 { passive } } From Pierre-Yves Ritschard
2006-10-25Remove a parser debug functionality that was never used in ospfd.Claudio Jeker
From Pierre-Yves Ritschard
2006-10-25Use strtonum(3) instead of the hand made atoul. This solves an issue withClaudio Jeker
possible integer truncation because of the use of u_longs and u_int32_t in the code. Initial diff by Pierre-Yves Ritschard but slightly modified version commited.
2006-05-31Support for "[no] redistribute 10.6/16", all routes that match into thisClaudio Jeker
range will match this "rule". This should be it, now it is time to write some documentation.
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-31Plug memory leak; ok claudio@Patrick Latifi
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-05-26\<char> is <char> except for \<newline> -- no exceptions. much like howTheo de Raadt
other things work. ok henning
2006-04-24Fix parser to match current behaviour and make auth-type et al. part of theClaudio Jeker
global and per area defaults. With this it is now possible to define one set of auth-md keys and use them in every defined interface. OK norby@
2006-04-20Simplify the defaults handling. This is long overdue and necessary to addClaudio Jeker
auth-type et al. to the main and area blocks. OK norby@
2006-03-15There is no need to check iface != NULL. These parser rules are only allowedClaudio Jeker
if iface is set and so the check is superfluous. OK norby@
2006-03-15Looks like auth-type simple was busted since a long time. We bcmp() aClaudio Jeker
c string with a lenght <= 8 with a buffer of size 8. Now in some cases there can be trailing garbage after the c-string and so the bcmp() fails. Found by Sergey Matveychuk who provided a similar patch. OK norby@
2006-03-08Spaces and other minor cleanup.Claudio Jeker