summaryrefslogtreecommitdiff
path: root/usr.sbin/ospfd/ospfe.c
AgeCommit message (Collapse)Author
2007-10-13Funny typo, it is fib not fip so adjust function name.Claudio Jeker
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-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-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-02-26Set the metric for loopback interfaces.Esben Norby
Fix by Dustin Lundquist - thank you very much. ok henning@
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-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.
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-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-09-27Use IP_RECVIF to get the incomming interface of OSPF packets. Now we useClaudio Jeker
the source address and the interface index to find the corresponding struct interface which is less error prone. OK norby@
2006-06-02remove unused variable, found by lint.Esben Norby
2006-05-30Uups, this file should be commited with the redistribute rtlabel stuff.Claudio Jeker
2006-04-25More lint cleanup. Kill unneeded stuff and sprinkle some ARGSUSED.Claudio Jeker
2006-04-16KNFHenning Brauer
2006-03-09Log link state changes.Esben Norby
ok claudio@
2006-03-08Remove unused quit flag inherited from bgpd long ago.Claudio Jeker
2006-03-08Check for implied acks. If we receive an update that is on our retransmissionClaudio Jeker
queue for the neighbor there is no need to send back an ack.
2006-02-21Better English in comments.Claudio Jeker
2006-02-19Do not allocate a new chunk of memory every time we receive a packet.Esben Norby
This should have been fixed ages ago since it really improves the performance of ospfd. ok claudio@
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-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-29Instead of a simple timer per neighbor for the LS retransmition list useClaudio Jeker
a timewheel. All LSA updates are now first added to the queue and sent out later. This makes it possible to cluster multiple LSA updates into on OSPF packet. This gives a massive speedup when large databases need to be synced. Tested and OK norby@
2005-12-15Fix ospfe shutdown function. The cleanup was totaly busted. OK norby@Claudio Jeker
2005-12-04Increase the receive buffer of the raw socket.Esben Norby
Prevents some of the retransmitting during bulk ls update transfers. ok claudio@
2005-10-19fix some spellings in comments.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-06-13Passive interfaces belong to the area and should be announced as stubClaudio Jeker
networks. Bug report and testing by Stephen Marley. While there kill an unneeded log_debug(). OK norby@
2005-05-27Set the V-bit when originating virtual links in router LSAs.Esben Norby
ok claudio@
2005-05-27Virtual link support, originate virtual links in router LSAs.Esben Norby
jajaja claudio@
2005-05-27Fix a access after free on shutdown. OK norby@Claudio Jeker
2005-05-27Initial virtual link support.Esben Norby
ok claudio@
2005-05-26More usable debug output when originating router lsas.Esben Norby
2005-05-26Another unneeded debug message.Esben Norby
2005-05-26Remove unneeded debugging messages from ospfe imsg handling.Esben Norby
2005-05-26Simplify and cleanup passive interface handling.Esben Norby
ok claudio@
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-05-12Add "show database asbr/external/network/router/self-originate/summary"Esben Norby
to ospfctl. Show detailed information about the LSAs in the Link State Database. ok claudio@
2005-05-12If activly connected to more than one area set B flag in the self-originatedClaudio Jeker
router LSA. To do that correctly we need to track the number of active neighbors for each area. If the routers ABR status changes all router LSA need to be updated via orig_rtr_lsa_all(). OK norby@
2005-05-02use setres[ug]id for privilege dropping; ok norby@Damien Miller
2005-04-25Call if_init() later and for each interface separately.Claudio Jeker
Move code from if_act_start() to if_init() that needs to be called only once per interface. Especially event_set should be called only once as it initializes struct event and so may cause corruption of the event queue if called twice.
2005-04-25Move the creation of the ospf_socket from if_init() directly into ospfe().Claudio Jeker
This makes it possible to call if_init() at a much later time.
2005-04-25Call if_init() in ospfe only, neither the rde nor the parent need it.Claudio Jeker
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-03-15Add control messages for the show fib commands.Claudio Jeker
OK norby@ deraadt@
2005-03-14Add "show summary" to ospfctl.Esben Norby
ok claudio@ henning@
2005-03-12Add "show rib" and "show rib detail" to ospfctl.Esben Norby
ok henning@