summaryrefslogtreecommitdiff
path: root/usr.sbin/ospfd/parse.y
AgeCommit message (Collapse)Author
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
2006-01-20Explicitly include limits.h if we are going to use its contents.Todd C. Miller
2006-01-05Make ospfd respect carp(4) interfaces and their weird behaviour. They willClaudio Jeker
not be used to connect to a OSPF cloud and forced to be passive. With this ospfd will only announce the carp interface route if the interface is master. So you can connect a LAN in a redundant way to your ospf backbone. OK norby@
2005-12-15Fix memory leaks in the parser. Make the string passed with area more strict.Claudio Jeker
Finaly implement clear_config(). OK norby@
2005-11-04Make "interface em0 { }" work again. Reported and OK stevesk@Claudio Jeker
2005-10-30remove some unneeded #includes and correct keyword in error string;Kevin Steves
ok claudio@
2005-10-28clean auth error messages; ok claudio@ msf@Kevin Steves
2005-09-17- add get_rtr_id() based on bgpd's get_bgpid()Mathieu Sauve-Frankel
- remove rtr_id from struct iface we don't need to keep a copy of this value per interface - replace all references to iface->rtr_id.s_addr with calls to ospfe_rtr_id() ok claudio@ norby@
2005-09-15auth-md-keyid 0 is valid but is not allowed on Cis^H^Hrap routers.Claudio Jeker
Default to id 1 and mention it in the man page. From a discussion with msf@ OK norby@
2005-06-28Make it possible to specify interfaces just by using "interface em0" withoutClaudio Jeker
a {} block. Only drawback is that it is no longer possible to do "interface em0\n{ ...". OK henning@ norby@ some time ago
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-23Make the rfc1583compat flag changable in ospfd.conf(5).Esben Norby
ok claudio@
2005-04-12Support for self originated AS-external LSA.Claudio Jeker
With "redistribute (static|connected|default|none)" it is possible to tell ospfd which external routes should be announced. Connected routes will be announced only if there is no corresponding interface configured, in that case the prefix is not external. Adding and removing of announced prefixes are done automaticaly. OK norby@
2005-04-06Add check for key lengths. Based on diff from Jason Ackley.Esben Norby
Reworked by me. ok claudio@
2005-03-31Add support for crypt authentication (MD5).Esben Norby
ok and input claudio@
2005-03-29The RFC never mentions anything about transfer, this should be transmit.Esben Norby
From Jason Ackley (thanks). ok claudio@
2005-03-22Remove bool cruft.Esben Norby
ok claudio@
2005-03-12Add "show rib" and "show rib detail" to ospfctl.Esben Norby
ok henning@
2005-03-12Small K&F.Esben Norby
ok henning@
2005-03-07Track interface state (up/down) and media status. Simplify the code a bitClaudio Jeker
by using the kif/kroute info while allocating interfaces.
2005-02-27SPF and route table calculation.Esben Norby
Calculate Shortest Path Tree for each area known in the link state database. The Shortest Path Tree is used as input for route table calculation. Route tabled is calculated and the result is inserted into the kernel route table. ok claudio@
2005-02-02Change keyword fibupdate to fib-update, for consistency with bgpd.conf(5).Esben Norby
ok claudio@ henning@
2005-02-02Typo in constant.Esben Norby
ok claudio@ henning@
2005-01-28Change my email address to the OpenBSD one since Ericsson has nothing toEsben Norby
do with this software, just happend to be my only valid email address at the time.
2005-01-28Welcome ospfdClaudio Jeker
started by Esben Norby some time ago by using the imsg/three process framework of bgpd. He implemented the basic concept plus the ospf finite state machines. Later I joined and helped him cleanup, debug and extend his work. Right now it is not particularly useful, major parts are still missing but is imported to allow more people to work on it. status: The basic protocol works for broadcast networks and the LS database is synchronized and updated. It is not possible to be DR or BDR on a network and other interface types like point-to-point are not yet supported. The shortest path tree is not calculated and so no routing information is exchanged with the kernel FIB. Not yet connected to the builds. OK henning@